pub enum BitwiseOps {
MaskXor = 0,
Lshift = 1,
Rshift = 2,
And = 3,
Or = 4,
Xor = 5,
}Available on crate feature
nftables only.Expand description
Enum - defines an integer enumeration, with values for each entry incrementing by 1, (e.g. 0, 1, 2, 3)
Variants§
MaskXor = 0
mask-and-xor operation used to implement NOT, AND, OR and XOR dreg = (sreg & mask) ^ xor with these mask and xor values: mask xor NOT: 1 1 OR: ~x x XOR: 1 x AND: x 0
Lshift = 1
Rshift = 2
And = 3
Or = 4
Xor = 5
Implementations§
Source§impl BitwiseOps
impl BitwiseOps
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for BitwiseOps
impl Clone for BitwiseOps
Source§fn clone(&self) -> BitwiseOps
fn clone(&self) -> BitwiseOps
Returns a duplicate 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 BitwiseOps
impl Debug for BitwiseOps
impl Copy for BitwiseOps
Auto Trait Implementations§
impl Freeze for BitwiseOps
impl RefUnwindSafe for BitwiseOps
impl Send for BitwiseOps
impl Sync for BitwiseOps
impl Unpin for BitwiseOps
impl UnwindSafe for BitwiseOps
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