pub enum Error {
}
Expand description
An error received from pcap
Variants§
MalformedError(Utf8Error)
The underlying library returned invalid UTF-8
InvalidString
The underlying library returned a null string
PcapError(String)
The unerlying library returned an error
InvalidLinktype
The linktype was invalid or unknown
TimeoutExpired
The timeout expired while reading from a live capture
NoMorePackets
No more packets to read from the file
NonNonBlock
Must be in non-blocking mode to function
InsufficientMemory
There is not sufficent memory to create a dead capture
InvalidInputString
An invalid input string (internal null)
IoError(ErrorKind)
An IO error occurred
InvalidRawFd
An invalid raw file descriptor was provided
ErrnoError(Errno)
Errno error
BufferOverflow
Buffer size overflows capacity
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more