[][src]Enum smoltcp::Error

#[non_exhaustive]pub enum Error {
    Exhausted,
    Illegal,
    Unaddressable,
    Finished,
    Truncated,
    Checksum,
    Unrecognized,
    Fragmented,
    Malformed,
    Dropped,
}

The error type for the networking stack.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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.

Finished

The operation is finished. E.g. when reading from a TCP socket, there's no more data to read because the remote has closed the connection.

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 Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.