Enum smoltcp::Error
[−]
[src]
pub enum Error { Truncated, Unrecognized, Malformed, Checksum, Fragmented, Unaddressable, Exhausted, Rejected, Dropped, // some variants omitted }
The error type for the networking stack.
Variants
Truncated
An incoming packet could not be parsed, or an outgoing packet could not be emitted because a field was out of bounds for the underlying buffer.
Unrecognized
An incoming packet could not be recognized and was dropped. E.g. a packet with an unknown EtherType.
Malformed
An incoming packet was recognized but contained invalid control information. E.g. a packet with IPv4 EtherType but containing a value other than 4 in the version field.
Checksum
An incoming packet had an incorrect checksum and was dropped.
Fragmented
An incoming packet has been fragmented and was dropped.
Unaddressable
An outgoing packet could not be sent because a protocol address could not be mapped to hardware address. E.g. an IPv4 packet did not have an Ethernet address corresponding to its IPv4 destination address.
Exhausted
A buffer for incoming packets is empty, or a buffer for outgoing packets is full.
Rejected
An incoming packet does not match the socket endpoint.
Dropped
An incoming packet was recognized by a stateful socket and contained invalid control information that caused the socket to drop it.
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
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
This method tests for !=
.
impl Eq for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more