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
Exhausted
An operation cannot proceed because a buffer is empty or full.
Truncated
An incoming packet could not be parsed because some of its fields were out of bounds of the received data.
Unrecognized
An incoming packet could not be recognized and was dropped. E.g. an Ethernet packet with an unknown EtherType.
Malformed
An incoming packet was recognized but was self-contradictory. E.g. a TCP packet with both SYN and FIN flags set.
MalformedNlaValue
Parsing of a netlink nla value failed.
Io(Error)
Failed to read or write a packet due to an IO error
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error