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>where
T: Debug,
P: Debug,
impl<T, P> Error for Nlmsgerr<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<'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: PartialEq, P: PartialEq> PartialEq<Nlmsgerr<T, P>> for Nlmsgerr<T, P>
impl<T: PartialEq, P: PartialEq> PartialEq<Nlmsgerr<T, P>> for Nlmsgerr<T, P>
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.