pub struct PushChainAttrs<Prev: Rec> { /* private fields */ }Available on crate feature
nftables only.Implementations§
Source§impl<Prev: Rec> PushChainAttrs<Prev>
impl<Prev: Rec> PushChainAttrs<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_table(self, value: &CStr) -> Self
pub fn push_table(self, value: &CStr) -> Self
name of the table containing the chain
Sourcepub fn push_table_bytes(self, value: &[u8]) -> Self
pub fn push_table_bytes(self, value: &[u8]) -> Self
name of the table containing the chain
Sourcepub fn push_handle(self, value: u64) -> Self
pub fn push_handle(self, value: u64) -> Self
numeric handle of the chain
Sourcepub fn push_name_bytes(self, value: &[u8]) -> Self
pub fn push_name_bytes(self, value: &[u8]) -> Self
name of the chain
Sourcepub fn nested_hook(self) -> PushNftHookAttrs<Self>
pub fn nested_hook(self) -> PushNftHookAttrs<Self>
hook specification for basechains
Sourcepub fn push_policy(self, value: u32) -> Self
pub fn push_policy(self, value: u32) -> Self
numeric policy of the chain
Sourcepub fn push_type_bytes(self, value: &[u8]) -> Self
pub fn push_type_bytes(self, value: &[u8]) -> Self
type name of the chain
Sourcepub fn nested_counters(self) -> PushNftCounterAttrs<Self>
pub fn nested_counters(self) -> PushNftCounterAttrs<Self>
counter specification of the chain
Sourcepub fn push_flags(self, value: u32) -> Self
pub fn push_flags(self, value: u32) -> Self
chain flags Associated type: “ChainFlags” (1 bit per enumeration)
Sourcepub fn push_userdata(self, value: &[u8]) -> Self
pub fn push_userdata(self, value: &[u8]) -> Self
user data
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushChainAttrs<Prev>
impl<Prev: Rec> Drop for PushChainAttrs<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushChainAttrs<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushChainAttrs<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushChainAttrs<Prev>where
Prev: Send,
impl<Prev> Sync for PushChainAttrs<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushChainAttrs<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushChainAttrs<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