Represents the possible errors while parsing a packet
pub enum Error {
ParsingError,
UnknownPacket,
ARPParsingError,
IPv6ParsingError,
IPv4ParsingError,
ICMPParsingError,
TCPParsingError,
UDPParsingError,
EthernetParsingError
}
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 {}