pub struct Nlmsgerr<T, P> {
pub error: c_int,
pub nlmsg: NlmsghdrErr<T, P>,
}
Expand description
Struct representing netlink packets containing errors
Fields§
§error: c_int
Error code
nlmsg: NlmsghdrErr<T, P>
Packet header for request that failed
Trait Implementations§
Source§impl<T, P> Error for Nlmsgerr<T, P>
impl<T, P> Error for Nlmsgerr<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<'lifetime, T: NlType, P: FromBytesWithInput<'lifetime, Input = usize>> FromBytesWithInput<'lifetime> for Nlmsgerr<T, P>
impl<'lifetime, T: NlType, P: FromBytesWithInput<'lifetime, Input = usize>> FromBytesWithInput<'lifetime> for Nlmsgerr<T, P>
Source§impl<T, P> Header for Nlmsgerr<T, P>
impl<T, P> Header for Nlmsgerr<T, P>
Source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
Source§impl<T: Size, P: Size> Size for Nlmsgerr<T, P>
impl<T: Size, P: Size> Size for Nlmsgerr<T, P>
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 of the payload and align it to
the required netlink byte alignment.
impl<T: Eq, P: Eq> Eq for Nlmsgerr<T, P>
impl<T, P> StructuralPartialEq for Nlmsgerr<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for Nlmsgerr<T, P>
impl<T, P> RefUnwindSafe for Nlmsgerr<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for Nlmsgerr<T, P>
impl<T, P> Sync for Nlmsgerr<T, P>
impl<T, P> Unpin for Nlmsgerr<T, P>
impl<T, P> UnwindSafe for Nlmsgerr<T, P>where
T: UnwindSafe,
P: 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