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: PartialEq> PartialEq<AttrType<T>> for AttrType<T>
impl<T: PartialEq> PartialEq<AttrType<T>> for AttrType<T>
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.