Enum wireguard_uapi::linux::err::NlError
source · 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()
Auto Trait Implementations§
impl<T = u16, P = Buffer> !RefUnwindSafe for NlError<T, P>
impl<T, P> Send for NlError<T, P>where P: Send, T: Send,
impl<T, P> Sync for NlError<T, P>where P: Sync, T: Sync,
impl<T, P> Unpin for NlError<T, P>where P: Unpin, T: Unpin,
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