pub enum HuginnNetError {
Parse(String),
UnsupportedProtocol(String),
InvalidTcpFlags(u8),
UnexpectedPackage(String),
UnsupportedEthernetType(EtherType),
Unknown,
}
Expand description
Error handling during network packet analysis and Database parsing.
Variants§
Parse(String)
An error occurred while parsing data.
This variant is used when a parsing operation fails. The associated string provides additional context about the error.
UnsupportedProtocol(String)
An unsupported protocol was encountered.
This variant is used when a protocol is not supported by the application. The associated string specifies the unsupported protocol.
InvalidTcpFlags(u8)
Invalid TCP flags were detected.
This variant is used when TCP flags are invalid or unexpected. The associated value provides the invalid flags.
UnexpectedPackage(String)
An invalid package was encountered.
This variant is used when a package is deemed invalid. The associated string provides details about the invalid package.
UnsupportedEthernetType(EtherType)
An unsupported Ethernet type was encountered.
This variant is used when an Ethernet type is not supported. The associated value specifies the unsupported Ethernet type.
Unknown
An unknown error occurred.
This variant is used as a catch-all for errors that do not fit other categories.