Enum neli::consts::genl::NlAttrTypeWrapper
source · 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<NlAttrTypeWrapper> for NlAttrTypeWrapper
impl PartialEq<NlAttrTypeWrapper> for NlAttrTypeWrapper
source§fn eq(&self, other: &NlAttrTypeWrapper) -> bool
fn eq(&self, other: &NlAttrTypeWrapper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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.