pub struct AttrType<T> { /* private fields */ }
Expand description
The infomation packed into nla_type
field of nlattr
for the C data structure.
Implementations§
Trait Implementations§
Source§impl<T> FromBytes for AttrType<T>where
T: NlAttrType,
impl<T> FromBytes for AttrType<T>where
T: NlAttrType,
Source§impl<T> Size for AttrType<T>where
T: Size,
impl<T> Size for AttrType<T>where
T: Size,
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<T> ToBytes for AttrType<T>where
T: NlAttrType,
impl<T> ToBytes for AttrType<T>where
T: NlAttrType,
impl<T: Eq> Eq for AttrType<T>
impl<T> StructuralPartialEq for AttrType<T>
Auto Trait Implementations§
impl<T> Freeze for AttrType<T>where
T: Freeze,
impl<T> RefUnwindSafe for AttrType<T>where
T: RefUnwindSafe,
impl<T> Send for AttrType<T>where
T: Send,
impl<T> Sync for AttrType<T>where
T: Sync,
impl<T> Unpin for AttrType<T>where
T: Unpin,
impl<T> UnwindSafe for AttrType<T>where
T: 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