pub struct Nlmsghdr<T, P> { /* private fields */ }
Expand description
Top level netlink header and payload
Implementations§
Source§impl<T, P> Nlmsghdr<T, P>
impl<T, P> Nlmsghdr<T, P>
Source§impl<T, P> Nlmsghdr<T, P>where
T: NlType,
impl<T, P> Nlmsghdr<T, P>where
T: NlType,
Sourcepub fn get_payload(&self) -> Option<&P>
pub fn get_payload(&self) -> Option<&P>
Get the payload if there is one or return an error.
Trait Implementations§
Source§impl<T, P> FromIterator<Nlmsghdr<T, P>> for NlBuffer<T, P>
impl<T, P> FromIterator<Nlmsghdr<T, P>> for NlBuffer<T, P>
Source§impl<T: TypeSize, P> Header for Nlmsghdr<T, P>
impl<T: TypeSize, P> Header for Nlmsghdr<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 Nlmsghdr<T, P>
impl<T: Size, P: Size> Size for Nlmsghdr<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 the payload and align it to
the required netlink byte alignment.
impl<T: Eq, P: Eq> Eq for Nlmsghdr<T, P>
impl<T, P> StructuralPartialEq for Nlmsghdr<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for Nlmsghdr<T, P>
impl<T, P> RefUnwindSafe for Nlmsghdr<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for Nlmsghdr<T, P>
impl<T, P> Sync for Nlmsghdr<T, P>
impl<T, P> Unpin for Nlmsghdr<T, P>
impl<T, P> UnwindSafe for Nlmsghdr<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