pub struct PushLogAttrs<Prev: Rec> { /* private fields */ }Available on crate feature
nftables only.Implementations§
Source§impl<Prev: Rec> PushLogAttrs<Prev>
impl<Prev: Rec> PushLogAttrs<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_group(self, value: u16) -> Self
pub fn push_group(self, value: u16) -> Self
netlink group to send messages to
Sourcepub fn push_prefix(self, value: &CStr) -> Self
pub fn push_prefix(self, value: &CStr) -> Self
prefix to prepend to log messages
Sourcepub fn push_prefix_bytes(self, value: &[u8]) -> Self
pub fn push_prefix_bytes(self, value: &[u8]) -> Self
prefix to prepend to log messages
Sourcepub fn push_snaplen(self, value: u32) -> Self
pub fn push_snaplen(self, value: u32) -> Self
length of payload to include in netlink message
Sourcepub fn push_qthreshold(self, value: u16) -> Self
pub fn push_qthreshold(self, value: u16) -> Self
queue threshold
Sourcepub fn push_level(self, value: u32) -> Self
pub fn push_level(self, value: u32) -> Self
log level Associated type: “LogLevel” (enum)
Sourcepub fn push_flags(self, value: u32) -> Self
pub fn push_flags(self, value: u32) -> Self
logging flags Associated type: “LogFlags” (enum)
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushLogAttrs<Prev>
impl<Prev: Rec> Drop for PushLogAttrs<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushLogAttrs<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushLogAttrs<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushLogAttrs<Prev>where
Prev: Send,
impl<Prev> Sync for PushLogAttrs<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushLogAttrs<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushLogAttrs<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