Enum smoltcp::Error
[−]
[src]
pub enum Error { Exhausted, Illegal, Unaddressable, Truncated, Checksum, Unrecognized, Fragmented, Malformed, Dropped, // some variants omitted }
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.
Trait Implementations
impl Debug for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.