Enum rpcap::PcapError
[−]
[src]
pub enum PcapError { Io(Error), InvalidPacketSize, InvalidDate, InvalidFileHeader, }
The error type for this crate.
Variants
Io(Error)
An error that was returned by the underlying reader/writer.
Possible recovery depends on the underlying reader/writer.
InvalidPacketSize
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.
InvalidDate
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.
InvalidFileHeader
The pcap file header could not be parsed.
Trait Implementations
impl Debug for PcapError
[src]
impl From<Error> for PcapError
[src]
impl From<SystemTimeError> for PcapError
[src]
fn from(_: SystemTimeError) -> PcapError
[src]
Performs the conversion.
impl Display for PcapError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more