pub enum SetAttrs<'a> {
Show 20 variants
Table(&'a CStr),
Name(&'a CStr),
Flags(u32),
KeyType(u32),
KeyLen(u32),
DataType(u32),
DataLen(u32),
Policy(u32),
Desc(IterableSetDescAttrs<'a>),
Id(u32),
Timeout(u64),
GcInterval(u32),
Userdata(&'a [u8]),
Pad(&'a [u8]),
ObjType(u32),
Handle(u64),
Expr(IterableExprAttrs<'a>),
Expressions(IterableSetListAttrs<'a>),
Type(&'a CStr),
Count(u32),
}Available on crate feature
nftables only.Variants§
Table(&'a CStr)
table name
Name(&'a CStr)
set name
Flags(u32)
bitmask of enum nft_set_flags Associated type: “SetFlags” (enum)
KeyType(u32)
key data type, informational purpose only
KeyLen(u32)
key data length
DataType(u32)
mapping data type
DataLen(u32)
mapping data length
Policy(u32)
selection policy
Desc(IterableSetDescAttrs<'a>)
set description
Id(u32)
uniquely identifies a set in a transaction
Timeout(u64)
default timeout value
GcInterval(u32)
garbage collection interval
Userdata(&'a [u8])
user data
Pad(&'a [u8])
ObjType(u32)
stateful object type
Handle(u64)
set handle
Expr(IterableExprAttrs<'a>)
set expression Attribute may repeat multiple times (treat it as array)
Expressions(IterableSetListAttrs<'a>)
list of expressions
Type(&'a CStr)
set backend type
Count(u32)
number of set elements
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SetAttrs<'a>
impl<'a> RefUnwindSafe for SetAttrs<'a>
impl<'a> Send for SetAttrs<'a>
impl<'a> Sync for SetAttrs<'a>
impl<'a> Unpin for SetAttrs<'a>
impl<'a> UnwindSafe for SetAttrs<'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