Enum pcap_file::errors::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
Io(Error),
BadMagicNumber(u32),
BadLength(u32),
BufferUnderflow(u64, u64),
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
Io(Error)std::io::Error
BadMagicNumber(u32)Invalid magic number for the global Pcap header
BadLength(u32)Bad header length value
BufferUnderflow(u64, u64)Not enough space in the buffer to read the requested bytes
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.