pub enum Error {
Exhausted,
Illegal,
Unaddressable,
Truncated,
Checksum,
Unrecognized,
Fragmented,
Malformed,
Dropped,
// some variants omitted
}
Expand description
The error type for the networking stack.
Variants§
Exhausted
An operation cannot proceed because a buffer is empty or full.
Illegal
An operation is not permitted in the current state.
Unaddressable
An endpoint or address of a remote host could not be translated to a lower level address. E.g. there was no an Ethernet address corresponding to an IPv4 address in the ARP cache, or a TCP connection attempt was made to an unspecified endpoint.
Truncated
An incoming packet could not be parsed because some of its fields were out of bounds of the received data.
Checksum
An incoming packet had an incorrect checksum and was dropped.
Unrecognized
An incoming packet could not be recognized and was dropped. E.g. an Ethernet packet with an unknown EtherType.
Fragmented
An incoming IP packet has been split into several IP fragments and was dropped, since IP reassembly is not supported.
Malformed
An incoming packet was recognized but was self-contradictory. E.g. a TCP packet with both SYN and FIN flags set.
Dropped
An incoming packet was recognized but contradicted internal state. E.g. a TCP packet addressed to a socket that doesn’t exist.