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>
impl<T, P> Error for NlError<T, P>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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.
Auto Trait Implementations§
impl<T, P> Freeze for NlError<T, P>
impl<T = u16, P = Buffer> !RefUnwindSafe for NlError<T, P>
impl<T, P> Send for NlError<T, P>
impl<T, P> Sync for NlError<T, P>
impl<T, P> Unpin for NlError<T, P>
impl<T = u16, P = Buffer> !UnwindSafe for NlError<T, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more