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 for NetfilterMsg
impl PartialEq for NetfilterMsg
Source§impl PartialOrd for NetfilterMsg
impl PartialOrd for NetfilterMsg
Source§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.
Source§impl ToBytes for NetfilterMsg
impl ToBytes for NetfilterMsg
Source§impl TypeSize for NetfilterMsg
impl TypeSize for NetfilterMsg
impl Copy for NetfilterMsg
impl Eq for NetfilterMsg
impl NlType for NetfilterMsg
impl StructuralPartialEq for NetfilterMsg
Auto Trait Implementations§
impl Freeze for NetfilterMsg
impl RefUnwindSafe for NetfilterMsg
impl Send for NetfilterMsg
impl Sync for NetfilterMsg
impl Unpin for NetfilterMsg
impl UnwindSafe for NetfilterMsg
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