pub struct CnMsg<P: Size> { /* private fields */ }
Expand description
Netlink connector message header and payload.
Implementations§
Trait Implementations§
Source§impl<P: Size + FromBytesWithInput<Input = usize>> FromBytesWithInput for CnMsg<P>
impl<P: Size + FromBytesWithInput<Input = usize>> FromBytesWithInput for CnMsg<P>
Source§impl<P: Size> Header for CnMsg<P>
impl<P: Size> Header for CnMsg<P>
Source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
Source§impl<P: Size + Size> Size for CnMsg<P>
impl<P: Size + Size> Size for CnMsg<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<P: Eq + Size> Eq for CnMsg<P>
impl<P: Size> StructuralPartialEq for CnMsg<P>
Auto Trait Implementations§
impl<P> Freeze for CnMsg<P>where
P: Freeze,
impl<P> RefUnwindSafe for CnMsg<P>where
P: RefUnwindSafe,
impl<P> Send for CnMsg<P>where
P: Send,
impl<P> Sync for CnMsg<P>where
P: Sync,
impl<P> Unpin for CnMsg<P>where
P: Unpin,
impl<P> UnwindSafe for CnMsg<P>where
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