pub enum NatRangeFlags {
MapIps = 1,
ProtoSpecified = 2,
ProtoRandom = 4,
Persistent = 8,
ProtoRandomFully = 16,
ProtoOffset = 32,
Netmap = 64,
}Available on crate feature
nftables only.Expand description
Flags - defines an integer enumeration, with values for each entry occupying a bit, starting from bit 0, (e.g. 1, 2, 4, 8)
Variants§
MapIps = 1
ProtoSpecified = 2
ProtoRandom = 4
Persistent = 8
ProtoRandomFully = 16
ProtoOffset = 32
Netmap = 64
Implementations§
Source§impl NatRangeFlags
impl NatRangeFlags
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for NatRangeFlags
impl Clone for NatRangeFlags
Source§fn clone(&self) -> NatRangeFlags
fn clone(&self) -> NatRangeFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NatRangeFlags
Auto Trait Implementations§
impl Freeze for NatRangeFlags
impl RefUnwindSafe for NatRangeFlags
impl Send for NatRangeFlags
impl Sync for NatRangeFlags
impl Unpin for NatRangeFlags
impl UnsafeUnpin for NatRangeFlags
impl UnwindSafe for NatRangeFlags
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