Enum neli::consts::rtnl::RtaTypeWrapper
source · pub enum RtaTypeWrapper {
Ifla(Ifla),
Ifa(Ifa),
Rta(Rta),
Tca(Tca),
Nda(Nda),
IflaInfo(IflaInfo),
UnrecognizedConst(c_ushort),
}
Expand description
Wrapper that is usable for all values in
Rtattr
field, rta_type
Variants§
Ifla(Ifla)
Ifa(Ifa)
Rta(Rta)
Tca(Tca)
Nda(Nda)
IflaInfo(IflaInfo)
UnrecognizedConst(c_ushort)
Constant could not be parsed into a type
Trait Implementations§
source§impl Clone for RtaTypeWrapper
impl Clone for RtaTypeWrapper
source§fn clone(&self) -> RtaTypeWrapper
fn clone(&self) -> RtaTypeWrapper
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 RtaTypeWrapper
impl Debug for RtaTypeWrapper
source§impl From<Ifa> for RtaTypeWrapper
impl From<Ifa> for RtaTypeWrapper
source§impl From<Ifla> for RtaTypeWrapper
impl From<Ifla> for RtaTypeWrapper
source§impl From<IflaInfo> for RtaTypeWrapper
impl From<IflaInfo> for RtaTypeWrapper
source§impl From<Nda> for RtaTypeWrapper
impl From<Nda> for RtaTypeWrapper
source§impl From<Rta> for RtaTypeWrapper
impl From<Rta> for RtaTypeWrapper
source§impl From<RtaTypeWrapper> for c_ushort
impl From<RtaTypeWrapper> for c_ushort
source§fn from(w: RtaTypeWrapper) -> Self
fn from(w: RtaTypeWrapper) -> Self
Converts to this type from the input type.
source§impl From<Tca> for RtaTypeWrapper
impl From<Tca> for RtaTypeWrapper
source§impl From<u16> for RtaTypeWrapper
impl From<u16> for RtaTypeWrapper
source§impl<'lt> FromBytes<'lt> for RtaTypeWrapper
impl<'lt> FromBytes<'lt> for RtaTypeWrapper
source§impl PartialEq<RtaTypeWrapper> for RtaTypeWrapper
impl PartialEq<RtaTypeWrapper> for RtaTypeWrapper
source§fn eq(&self, other: &RtaTypeWrapper) -> bool
fn eq(&self, other: &RtaTypeWrapper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Size for RtaTypeWrapper
impl Size for RtaTypeWrapper
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.