pub enum NlAttrTypeWrapper {
CtrlAttr(CtrlAttr),
CtrlAttrMcastGrp(CtrlAttrMcastGrp),
NfLogAttr(NfLogAttr),
NfLogCfg(NfLogCfg),
Index(Index),
UnrecognizedConst(u16),
}
Expand description
Wrapper that is usable with all values in the
Nlattr
field, nla_type
.
Variants§
CtrlAttr(CtrlAttr)
CtrlAttrMcastGrp(CtrlAttrMcastGrp)
NfLogAttr(NfLogAttr)
NfLogCfg(NfLogCfg)
Index(Index)
UnrecognizedConst(u16)
Constant could not be parsed into a type
Trait Implementations§
Source§impl Clone for NlAttrTypeWrapper
impl Clone for NlAttrTypeWrapper
Source§fn clone(&self) -> NlAttrTypeWrapper
fn clone(&self) -> NlAttrTypeWrapper
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 Debug for NlAttrTypeWrapper
impl Debug for NlAttrTypeWrapper
Source§impl From<CtrlAttr> for NlAttrTypeWrapper
impl From<CtrlAttr> for NlAttrTypeWrapper
Source§impl From<CtrlAttrMcastGrp> for NlAttrTypeWrapper
impl From<CtrlAttrMcastGrp> for NlAttrTypeWrapper
Source§fn from(e: CtrlAttrMcastGrp) -> Self
fn from(e: CtrlAttrMcastGrp) -> Self
Converts to this type from the input type.
Source§impl From<Index> for NlAttrTypeWrapper
impl From<Index> for NlAttrTypeWrapper
Source§impl From<NfLogAttr> for NlAttrTypeWrapper
impl From<NfLogAttr> for NlAttrTypeWrapper
Source§impl From<NfLogCfg> for NlAttrTypeWrapper
impl From<NfLogCfg> for NlAttrTypeWrapper
Source§impl From<NlAttrTypeWrapper> for u16
impl From<NlAttrTypeWrapper> for u16
Source§fn from(w: NlAttrTypeWrapper) -> Self
fn from(w: NlAttrTypeWrapper) -> Self
Converts to this type from the input type.
Source§impl From<u16> for NlAttrTypeWrapper
impl From<u16> for NlAttrTypeWrapper
Source§impl<'lt> FromBytes<'lt> for NlAttrTypeWrapper
impl<'lt> FromBytes<'lt> for NlAttrTypeWrapper
Source§impl PartialEq for NlAttrTypeWrapper
impl PartialEq for NlAttrTypeWrapper
Source§impl Size for NlAttrTypeWrapper
impl Size for NlAttrTypeWrapper
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 ToBytes for NlAttrTypeWrapper
impl ToBytes for NlAttrTypeWrapper
Source§impl TypeSize for NlAttrTypeWrapper
impl TypeSize for NlAttrTypeWrapper
impl Copy for NlAttrTypeWrapper
impl Eq for NlAttrTypeWrapper
impl NlAttrType for NlAttrTypeWrapper
impl StructuralPartialEq for NlAttrTypeWrapper
Auto Trait Implementations§
impl Freeze for NlAttrTypeWrapper
impl RefUnwindSafe for NlAttrTypeWrapper
impl Send for NlAttrTypeWrapper
impl Sync for NlAttrTypeWrapper
impl Unpin for NlAttrTypeWrapper
impl UnwindSafe for NlAttrTypeWrapper
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