Enum neli::consts::genl::CtrlAttrMcastGrp
source · pub enum CtrlAttrMcastGrp {
Unspec,
Name,
Id,
UnrecognizedConst(u16),
}
Expand description
Values for nla_type
in Nlattr
Variants§
Implementations§
source§impl CtrlAttrMcastGrp
impl CtrlAttrMcastGrp
sourcepub fn is_unrecognized(&self) -> bool
pub fn is_unrecognized(&self) -> bool
Check whether a given method is an unrecognized constant for the set of possible constants associated with the current type.
Trait Implementations§
source§impl Clone for CtrlAttrMcastGrp
impl Clone for CtrlAttrMcastGrp
source§fn clone(&self) -> CtrlAttrMcastGrp
fn clone(&self) -> CtrlAttrMcastGrp
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 CtrlAttrMcastGrp
impl Debug for CtrlAttrMcastGrp
source§impl From<&CtrlAttrMcastGrp> for u16
impl From<&CtrlAttrMcastGrp> for u16
source§fn from(enm: &CtrlAttrMcastGrp) -> Self
fn from(enm: &CtrlAttrMcastGrp) -> Self
Converts to this type from the input type.
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<CtrlAttrMcastGrp> for u16
impl From<CtrlAttrMcastGrp> for u16
source§fn from(enm: CtrlAttrMcastGrp) -> Self
fn from(enm: CtrlAttrMcastGrp) -> Self
Converts to this type from the input type.
source§impl From<u16> for CtrlAttrMcastGrp
impl From<u16> for CtrlAttrMcastGrp
source§impl<'lt> FromBytes<'lt> for CtrlAttrMcastGrp
impl<'lt> FromBytes<'lt> for CtrlAttrMcastGrp
source§impl Hash for CtrlAttrMcastGrp
impl Hash for CtrlAttrMcastGrp
source§impl Ord for CtrlAttrMcastGrp
impl Ord for CtrlAttrMcastGrp
source§fn cmp(&self, other: &CtrlAttrMcastGrp) -> Ordering
fn cmp(&self, other: &CtrlAttrMcastGrp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CtrlAttrMcastGrp> for CtrlAttrMcastGrp
impl PartialEq<CtrlAttrMcastGrp> for CtrlAttrMcastGrp
source§fn eq(&self, other: &CtrlAttrMcastGrp) -> bool
fn eq(&self, other: &CtrlAttrMcastGrp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CtrlAttrMcastGrp> for CtrlAttrMcastGrp
impl PartialOrd<CtrlAttrMcastGrp> for CtrlAttrMcastGrp
source§fn partial_cmp(&self, other: &CtrlAttrMcastGrp) -> Option<Ordering>
fn partial_cmp(&self, other: &CtrlAttrMcastGrp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Size for CtrlAttrMcastGrp
impl Size for CtrlAttrMcastGrp
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.