pub enum TableAttrs<'a> {
Name(&'a CStr),
Flags(u32),
Use(u32),
Handle(u64),
Pad(&'a [u8]),
Userdata(&'a [u8]),
Owner(u32),
}Available on crate feature
nftables only.Variants§
Name(&'a CStr)
name of the table
Flags(u32)
bitmask of flags Associated type: “TableFlags” (1 bit per enumeration)
Use(u32)
number of chains in this table
Handle(u64)
numeric handle of the table
Pad(&'a [u8])
Userdata(&'a [u8])
user data
Owner(u32)
owner of this table through netlink portID
Implementations§
Source§impl<'a> TableAttrs<'a>
impl<'a> TableAttrs<'a>
pub fn new(buf: &'a [u8]) -> IterableTableAttrs<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for TableAttrs<'a>
impl<'a> Clone for TableAttrs<'a>
Source§fn clone(&self) -> TableAttrs<'a>
fn clone(&self) -> TableAttrs<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for TableAttrs<'a>
impl<'a> RefUnwindSafe for TableAttrs<'a>
impl<'a> Send for TableAttrs<'a>
impl<'a> Sync for TableAttrs<'a>
impl<'a> Unpin for TableAttrs<'a>
impl<'a> UnwindSafe for TableAttrs<'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