pub struct PushNumgenAttrs<Prev: Rec> { /* private fields */ }Available on crate feature
nftables only.Implementations§
Source§impl<Prev: Rec> PushNumgenAttrs<Prev>
impl<Prev: Rec> PushNumgenAttrs<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_dreg(self, value: u32) -> Self
pub fn push_dreg(self, value: u32) -> Self
destination register Associated type: “Registers” (enum)
Sourcepub fn push_modulus(self, value: u32) -> Self
pub fn push_modulus(self, value: u32) -> Self
maximum counter value
Sourcepub fn push_type(self, value: u32) -> Self
pub fn push_type(self, value: u32) -> Self
operation type Associated type: “NumgenTypes” (enum)
Sourcepub fn push_offset(self, value: u32) -> Self
pub fn push_offset(self, value: u32) -> Self
offset to be added to the counter
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushNumgenAttrs<Prev>
impl<Prev: Rec> Drop for PushNumgenAttrs<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushNumgenAttrs<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushNumgenAttrs<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushNumgenAttrs<Prev>where
Prev: Send,
impl<Prev> Sync for PushNumgenAttrs<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushNumgenAttrs<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushNumgenAttrs<Prev>where
Prev: UnwindSafe,
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