pub struct AttrType<T> {
pub nla_nested: bool,
pub nla_network_order: bool,
pub nla_type: T,
}
Expand description
The infomation packed into nla_type
field of nlattr
for the C data structure.
Fields§
§nla_nested: bool
If true, the payload contains nested attributes.
nla_network_order: bool
If true, the payload is in net work byte order.
nla_type: T
Enum representing the type of the attribute payload
Trait Implementations§
Source§impl<'lt, T> FromBytes<'lt> for AttrType<T>where
T: NlAttrType,
impl<'lt, T> FromBytes<'lt> 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 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