Enum rpcap::PcapError [] [src]

pub enum PcapError {
    Io(Error),
    InvalidPacketSize,
    InvalidDate,
    InvalidFileHeader,
}

The error type for this crate.

Variants

An error that was returned by the underlying reader/writer.

Possible recovery depends on the underlying reader/writer.

A packet could not be returned because it's size exceeds that specified in the pcap file header, or that of the target architecture's usize.

You can try recovering by reading the next packet, but it is likely the pcap file is corrupted.

A packet could not be returned because it has an invalid timestamp.

You can try recovering by reading the next packet, but it is likely the pcap file is corrupted.

The pcap file header could not be parsed.

Trait Implementations

impl Debug for PcapError
[src]

[src]

Formats the value using the given formatter.

impl From<Error> for PcapError
[src]

[src]

Performs the conversion.

impl From<SystemTimeError> for PcapError
[src]

[src]

Performs the conversion.

impl Display for PcapError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for PcapError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more