Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 505 Bytes

error.md

File metadata and controls

28 lines (24 loc) · 505 Bytes

Error

Represents the possible errors while parsing a packet

pub enum Error {
    ParsingError,
    UnknownPacket,
    ARPParsingError,
    IPv6ParsingError,
    IPv4ParsingError,
    ICMPParsingError,
    TCPParsingError,
    UDPParsingError,
    EthernetParsingError
}

Trait Implementations

impl Display for Error 
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result 

Formats the value using the given formatter

impl std::error::Error for Error {}