[][src]Enum pcap::Error

pub enum Error {
    MalformedError(Utf8Error),
    InvalidString,
    PcapError(String),
    InvalidLinktype,
    TimeoutExpired,
    NoMorePackets,
    NonNonBlock,
    InsufficientMemory,
    InvalidInputString,
    IoError(ErrorKind),
    InvalidRawFd,
}

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

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<ErrorKind> for Error[src]

impl From<NulError> for Error[src]

impl From<Utf8Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.