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 for LogCopyMode
impl PartialEq for LogCopyMode
Source§impl PartialOrd for LogCopyMode
impl PartialOrd for LogCopyMode
Source§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.
Source§impl ToBytes for LogCopyMode
impl ToBytes for LogCopyMode
Source§impl TypeSize for LogCopyMode
impl TypeSize for LogCopyMode
impl Copy for LogCopyMode
impl Eq for LogCopyMode
impl StructuralPartialEq for LogCopyMode
Auto Trait Implementations§
impl Freeze for LogCopyMode
impl RefUnwindSafe for LogCopyMode
impl Send for LogCopyMode
impl Sync for LogCopyMode
impl Unpin for LogCopyMode
impl UnwindSafe for LogCopyMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more