pub enum PcapError {
IncompleteBuffer,
IoError(Error),
InvalidField(&'static str),
Utf8Error(Utf8Error),
FromUtf8Error(FromUtf8Error),
InvalidInterfaceId(u32),
}
Expand description
Error type for the pcap/pcapng parsing
Variants§
IncompleteBuffer
Buffer too small
IoError(Error)
Generic IO error
InvalidField(&'static str)
Invalid field
Utf8Error(Utf8Error)
UTF8 conversion error
FromUtf8Error(FromUtf8Error)
From UTF8 conversion error
InvalidInterfaceId(u32)
Invalid interface ID (only for Pcap NG)
Trait Implementations§
source§impl Error for PcapError
impl Error for PcapError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FromUtf8Error> for PcapError
impl From<FromUtf8Error> for PcapError
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.