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

An operation cannot proceed because a buffer is empty or full.

An operation is not permitted in the current state.

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.

An incoming packet could not be parsed because some of its fields were out of bounds of the received data.

An incoming packet had an incorrect checksum and was dropped.

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

An incoming IP packet has been split into several IP fragments and was dropped, since IP reassembly is not supported.

An incoming packet was recognized but was self-contradictory. E.g. a TCP packet with both SYN and FIN flags set.

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]

[src]

Formats the value using the given formatter.

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl PartialEq for Error
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Error
[src]

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more