pub enum ChainAttrs<'a> {
Table(&'a CStr),
Handle(u64),
Name(&'a CStr),
Hook(IterableNftHookAttrs<'a>),
Policy(u32),
Use(u32),
Type(&'a CStr),
Counters(IterableNftCounterAttrs<'a>),
Flags(u32),
Id(u32),
Userdata(&'a [u8]),
}Available on crate feature
nftables only.Variants§
Table(&'a CStr)
name of the table containing the chain
Handle(u64)
numeric handle of the chain
Name(&'a CStr)
name of the chain
Hook(IterableNftHookAttrs<'a>)
hook specification for basechains
Policy(u32)
numeric policy of the chain
Use(u32)
number of references to this chain
Type(&'a CStr)
type name of the chain
Counters(IterableNftCounterAttrs<'a>)
counter specification of the chain
Flags(u32)
chain flags
Associated type: ChainFlags (1 bit per enumeration)
Id(u32)
uniquely identifies a chain in a transaction
Userdata(&'a [u8])
user data
Implementations§
Source§impl ChainAttrs<'_>
impl ChainAttrs<'_>
pub fn new<'a>(buf: &'a [u8]) -> IterableChainAttrs<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for ChainAttrs<'a>
impl<'a> Clone for ChainAttrs<'a>
Source§fn clone(&self) -> ChainAttrs<'a>
fn clone(&self) -> ChainAttrs<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ChainAttrs<'a>
impl<'a> RefUnwindSafe for ChainAttrs<'a>
impl<'a> Send for ChainAttrs<'a>
impl<'a> Sync for ChainAttrs<'a>
impl<'a> Unpin for ChainAttrs<'a>
impl<'a> UnsafeUnpin for ChainAttrs<'a>
impl<'a> UnwindSafe for ChainAttrs<'a>
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