Enum neli::consts::netfilter::NetfilterMsg
source · pub enum NetfilterMsg {
LogPacket,
LogConfig,
UnrecognizedConst(u16),
}
Expand description
Messages related to the netfilter netlink protocols.
These appear on the
NlFamily::Netfilter
sockets.
Variants§
Implementations§
source§impl NetfilterMsg
impl NetfilterMsg
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 NetfilterMsg
impl Clone for NetfilterMsg
source§fn clone(&self) -> NetfilterMsg
fn clone(&self) -> NetfilterMsg
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 NetfilterMsg
impl Debug for NetfilterMsg
source§impl From<&NetfilterMsg> for u16
impl From<&NetfilterMsg> for u16
source§fn from(enm: &NetfilterMsg) -> Self
fn from(enm: &NetfilterMsg) -> Self
Converts to this type from the input type.
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<NetfilterMsg> for u16
impl From<NetfilterMsg> for u16
source§fn from(enm: NetfilterMsg) -> Self
fn from(enm: NetfilterMsg) -> Self
Converts to this type from the input type.
source§impl From<u16> for NetfilterMsg
impl From<u16> for NetfilterMsg
source§impl<'lt> FromBytes<'lt> for NetfilterMsg
impl<'lt> FromBytes<'lt> for NetfilterMsg
source§impl Hash for NetfilterMsg
impl Hash for NetfilterMsg
source§impl Ord for NetfilterMsg
impl Ord for NetfilterMsg
source§fn cmp(&self, other: &NetfilterMsg) -> Ordering
fn cmp(&self, other: &NetfilterMsg) -> 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<NetfilterMsg> for NetfilterMsg
impl PartialEq<NetfilterMsg> for NetfilterMsg
source§fn eq(&self, other: &NetfilterMsg) -> bool
fn eq(&self, other: &NetfilterMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NetfilterMsg> for NetfilterMsg
impl PartialOrd<NetfilterMsg> for NetfilterMsg
source§fn partial_cmp(&self, other: &NetfilterMsg) -> Option<Ordering>
fn partial_cmp(&self, other: &NetfilterMsg) -> 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 NetfilterMsg
impl Size for NetfilterMsg
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.