pub struct Genlmsghdr<C, T, H = NoUserHeader> { /* private fields */ }
Expand description
Struct representing generic netlink header and payload
Implementations§
Source§impl<C, T, H> Genlmsghdr<C, T, H>
impl<C, T, H> Genlmsghdr<C, T, H>
Trait Implementations§
Source§impl<C: Clone, T: Clone, H: Clone> Clone for Genlmsghdr<C, T, H>
impl<C: Clone, T: Clone, H: Clone> Clone for Genlmsghdr<C, T, H>
Source§fn clone(&self) -> Genlmsghdr<C, T, H>
fn clone(&self) -> Genlmsghdr<C, T, H>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C: Cmd + TypeSize, T: NlAttrType, H: TypeSize + FromBytes> FromBytesWithInput for Genlmsghdr<C, T, H>
impl<C: Cmd + TypeSize, T: NlAttrType, H: TypeSize + FromBytes> FromBytesWithInput for Genlmsghdr<C, T, H>
Source§impl<C: TypeSize, T, H: TypeSize> Header for Genlmsghdr<C, T, H>
impl<C: TypeSize, T, H: TypeSize> Header for Genlmsghdr<C, T, H>
Source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
Source§impl<C: Size, T: Size, H: Size> Size for Genlmsghdr<C, T, H>
impl<C: Size, T: Size, H: Size> Size for Genlmsghdr<C, T, H>
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.
Source§impl<C: Cmd, T: NlAttrType, H: ToBytes> ToBytes for Genlmsghdr<C, T, H>
impl<C: Cmd, T: NlAttrType, H: ToBytes> ToBytes for Genlmsghdr<C, T, H>
impl<C: Eq, T: Eq, H: Eq> Eq for Genlmsghdr<C, T, H>
impl<C, T, H> StructuralPartialEq for Genlmsghdr<C, T, H>
Auto Trait Implementations§
impl<C, T, H> Freeze for Genlmsghdr<C, T, H>
impl<C, T, H> RefUnwindSafe for Genlmsghdr<C, T, H>
impl<C, T, H> Send for Genlmsghdr<C, T, H>
impl<C, T, H> Sync for Genlmsghdr<C, T, H>
impl<C, T, H> Unpin for Genlmsghdr<C, T, H>
impl<C, T, H> UnwindSafe for Genlmsghdr<C, T, H>
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