ip_spoofing/
error.rs

1/// Custom Result type with two generic parameters for user convenience
2pub type Result<T, E = Error> = std::result::Result<T, E>;
3
4/// Describes possible errors that might happen when user interacts with this crate
5#[derive(thiserror::Error, Debug)]
6pub enum Error {
7    #[error("I/O error: {0}")]
8    IO(#[from] std::io::Error),
9    #[error("nix crate error: {0}")]
10    Nix(#[from] nix::Error),
11    #[error("etherparse crate error: {0}")]
12    Etherparse(#[from] etherparse::err::packet::BuildWriteError),
13}