Enum neli::consts::nl::NlTypeWrapper
source · pub enum NlTypeWrapper {
Nlmsg(Nlmsg),
GenlId(GenlId),
Rtm(Rtm),
NetfilterMsg(NetfilterMsg),
UnrecognizedConst(u16),
}
Expand description
Wrapper that is usable with all values in
Nlmsghdr
field,
nl_type
.
Variants§
Nlmsg(Nlmsg)
GenlId(GenlId)
Rtm(Rtm)
NetfilterMsg(NetfilterMsg)
UnrecognizedConst(u16)
Constant could not be parsed into a type
Trait Implementations§
source§impl Clone for NlTypeWrapper
impl Clone for NlTypeWrapper
source§fn clone(&self) -> NlTypeWrapper
fn clone(&self) -> NlTypeWrapper
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 NlTypeWrapper
impl Debug for NlTypeWrapper
source§impl From<GenlId> for NlTypeWrapper
impl From<GenlId> for NlTypeWrapper
source§impl From<NetfilterMsg> for NlTypeWrapper
impl From<NetfilterMsg> for NlTypeWrapper
source§fn from(e: NetfilterMsg) -> Self
fn from(e: NetfilterMsg) -> Self
Converts to this type from the input type.
source§impl From<NlTypeWrapper> for u16
impl From<NlTypeWrapper> for u16
source§fn from(w: NlTypeWrapper) -> Self
fn from(w: NlTypeWrapper) -> Self
Converts to this type from the input type.
source§impl From<Nlmsg> for NlTypeWrapper
impl From<Nlmsg> for NlTypeWrapper
source§impl From<Rtm> for NlTypeWrapper
impl From<Rtm> for NlTypeWrapper
source§impl From<u16> for NlTypeWrapper
impl From<u16> for NlTypeWrapper
source§impl<'lt> FromBytes<'lt> for NlTypeWrapper
impl<'lt> FromBytes<'lt> for NlTypeWrapper
source§impl PartialEq<NlTypeWrapper> for NlTypeWrapper
impl PartialEq<NlTypeWrapper> for NlTypeWrapper
source§fn eq(&self, other: &NlTypeWrapper) -> bool
fn eq(&self, other: &NlTypeWrapper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Size for NlTypeWrapper
impl Size for NlTypeWrapper
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.