Enum netlink_sys::Error [−][src]
pub enum Error {
Exhausted,
Truncated,
Unrecognized,
Malformed,
MalformedNlaValue,
Io(Error),
// some variants omitted
}The error type for the netlink packet parser
Variants
ExhaustedAn operation cannot proceed because a buffer is empty or full.
TruncatedAn incoming packet could not be parsed because some of its fields were out of bounds of the received data.
UnrecognizedAn incoming packet could not be recognized and was dropped. E.g. an Ethernet packet with an unknown EtherType.
MalformedAn incoming packet was recognized but was self-contradictory. E.g. a TCP packet with both SYN and FIN flags set.
MalformedNlaValueParsing 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 Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StdError for Error[src]
impl StdError for Errorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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