pub enum NlError<T = u16, P = Buffer> {
Msg(String),
Nlmsgerr(Nlmsgerr<T, P>),
Ser(SerError),
De(DeError),
Wrapped(WrappedError),
NoAck,
BadSeq,
BadPid,
}
Expand description
General netlink error
Variants§
Msg(String)
Variant for String
-based messages.
Nlmsgerr(Nlmsgerr<T, P>)
An error packet sent back by netlink.
Ser(SerError)
A serialization error.
De(DeError)
A deserialization error.
Wrapped(WrappedError)
A wrapped error from lower in the call stack.
NoAck
No ack was received when
NlmF::Ack
was specified in the
request.
BadSeq
The sequence number for the response did not match the request.
BadPid
Incorrect PID socket identifier in received message.
Implementations§
Trait Implementations§
source§impl<T, P> Error for NlError<T, P>where
T: Debug,
P: Debug,
impl<T, P> Error for NlError<T, P>where
T: Debug,
P: Debug,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FromBytesWithNulError> for NlError
impl From<FromBytesWithNulError> for NlError
source§fn from(e: FromBytesWithNulError) -> Self
fn from(e: FromBytesWithNulError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for NlError
impl From<FromUtf8Error> for NlError
source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<WrappedError> for NlError
impl From<WrappedError> for NlError
source§fn from(e: WrappedError) -> Self
fn from(e: WrappedError) -> Self
Converts to this type from the input type.