Enum rtnetlink::Error[][src]

pub enum Error {
    Exhausted,
    Truncated,
    Unrecognized,
    Malformed,
    MalformedNlaValue,
    Io(Error),
    // some variants omitted
}

The error type for the netlink packet parser

Variants

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

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

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

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

Parsing of a netlink nla value failed.

Failed to read or write a packet due to an IO error

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error