pub enum CtStateFlags {
New = 1,
Established = 2,
Related = 4,
ReplyDir = 8,
Invalid = 16,
Tracked = 32,
SrcNat = 64,
DstNat = 128,
}Available on crate feature
ovs_flow 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§
New = 1
Beginning of a new connection.
Established = 2
Part of an existing connenction
Related = 4
Related to an existing connection.
ReplyDir = 8
Flow is in the reply direction.
Invalid = 16
Could not track the connection.
Tracked = 32
Conntrack has occurred.
SrcNat = 64
Packet's source address/port was mangled by NAT.
DstNat = 128
Packet's destination address/port was mangled by NAT.
Implementations§
Source§impl CtStateFlags
impl CtStateFlags
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for CtStateFlags
impl Clone for CtStateFlags
Source§fn clone(&self) -> CtStateFlags
fn clone(&self) -> CtStateFlags
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 CtStateFlags
Auto Trait Implementations§
impl Freeze for CtStateFlags
impl RefUnwindSafe for CtStateFlags
impl Send for CtStateFlags
impl Sync for CtStateFlags
impl Unpin for CtStateFlags
impl UnsafeUnpin for CtStateFlags
impl UnwindSafe for CtStateFlags
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