Enum neli::consts::netfilter::LogCopyMode
source · pub enum LogCopyMode {
None,
Meta,
Packet,
UnrecognizedConst(u8),
}
Expand description
Copy mode of the logged packets.
Variants§
Implementations§
source§impl LogCopyMode
impl LogCopyMode
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 LogCopyMode
impl Clone for LogCopyMode
source§fn clone(&self) -> LogCopyMode
fn clone(&self) -> LogCopyMode
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 LogCopyMode
impl Debug for LogCopyMode
source§impl From<&LogCopyMode> for u8
impl From<&LogCopyMode> for u8
source§fn from(enm: &LogCopyMode) -> Self
fn from(enm: &LogCopyMode) -> Self
Converts to this type from the input type.
source§impl From<LogCopyMode> for u8
impl From<LogCopyMode> for u8
source§fn from(enm: LogCopyMode) -> Self
fn from(enm: LogCopyMode) -> Self
Converts to this type from the input type.
source§impl From<u8> for LogCopyMode
impl From<u8> for LogCopyMode
source§impl<'lt> FromBytes<'lt> for LogCopyMode
impl<'lt> FromBytes<'lt> for LogCopyMode
source§impl Hash for LogCopyMode
impl Hash for LogCopyMode
source§impl Ord for LogCopyMode
impl Ord for LogCopyMode
source§fn cmp(&self, other: &LogCopyMode) -> Ordering
fn cmp(&self, other: &LogCopyMode) -> 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<LogCopyMode> for LogCopyMode
impl PartialEq<LogCopyMode> for LogCopyMode
source§fn eq(&self, other: &LogCopyMode) -> bool
fn eq(&self, other: &LogCopyMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LogCopyMode> for LogCopyMode
impl PartialOrd<LogCopyMode> for LogCopyMode
source§fn partial_cmp(&self, other: &LogCopyMode) -> Option<Ordering>
fn partial_cmp(&self, other: &LogCopyMode) -> 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 LogCopyMode
impl Size for LogCopyMode
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.