pub struct Nlmsgerr<M> { /* private fields */ }
Expand description
Struct representing netlink packets containing errors
Implementations§
Source§impl Nlmsgerr<NlmsghdrErr<u16, Buffer>>
impl Nlmsgerr<NlmsghdrErr<u16, Buffer>>
Sourcepub fn to_typed<T, P>(
self,
) -> Result<Nlmsgerr<NlmsghdrErr<T, P>>, RouterError<T, P>>
pub fn to_typed<T, P>( self, ) -> Result<Nlmsgerr<NlmsghdrErr<T, P>>, RouterError<T, P>>
Create a typed error from an error that can represent all types.
Source§impl Nlmsgerr<NlmsghdrAck<u16>>
impl Nlmsgerr<NlmsghdrAck<u16>>
Sourcepub fn to_typed<T, P>(
self,
) -> Result<Nlmsgerr<NlmsghdrAck<T>>, RouterError<T, P>>where
T: NlType,
pub fn to_typed<T, P>(
self,
) -> Result<Nlmsgerr<NlmsghdrAck<T>>, RouterError<T, P>>where
T: NlType,
Create a typed ACK from an ACK that can represent all types.
Trait Implementations§
Source§impl<M> Error for Nlmsgerr<M>where
M: Debug,
impl<M> Error for Nlmsgerr<M>where
M: Debug,
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<M: Size + FromBytes> FromBytesWithInput for Nlmsgerr<M>
impl<M: Size + FromBytes> FromBytesWithInput for Nlmsgerr<M>
Source§impl<M: Size> Size for Nlmsgerr<M>
impl<M: Size> Size for Nlmsgerr<M>
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of the payload and align it to
the required netlink byte alignment.
impl<M: Eq> Eq for Nlmsgerr<M>
impl<M> StructuralPartialEq for Nlmsgerr<M>
Auto Trait Implementations§
impl<M> Freeze for Nlmsgerr<M>where
M: Freeze,
impl<M> RefUnwindSafe for Nlmsgerr<M>where
M: RefUnwindSafe,
impl<M> Send for Nlmsgerr<M>where
M: Send,
impl<M> Sync for Nlmsgerr<M>where
M: Sync,
impl<M> Unpin for Nlmsgerr<M>where
M: Unpin,
impl<M> UnwindSafe for Nlmsgerr<M>where
M: UnwindSafe,
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