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

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.

An incoming packet could not be recognized and was dropped. E.g. a packet with an unknown EtherType.

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.

An incoming packet had an incorrect checksum and was dropped.

An incoming packet has been fragmented and was dropped.

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.

A buffer for incoming packets is empty, or a buffer for outgoing packets is full.

An incoming packet does not match the socket endpoint.

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]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter. Read more