pub struct Request<'buf> { /* private fields */ }Available on crate feature
conntrack only.Implementations§
Source§impl<'buf> Request<'buf>
impl<'buf> Request<'buf>
pub fn new_with_buf(buf: &'buf mut Vec<u8>) -> Self
pub fn new_extend(buf: &'buf mut Vec<u8>) -> Self
pub fn buf(&self) -> &Vec<u8> ⓘ
pub fn buf_mut(&mut self) -> &mut Vec<u8> ⓘ
Sourcepub fn set_create(self) -> Self
pub fn set_create(self) -> Self
Set NLM_F_CREATE flag
Sourcepub fn set_replace(self) -> Self
pub fn set_replace(self) -> Self
Set NLM_F_REPLACE flag
Sourcepub fn set_change(self) -> Self
pub fn set_change(self) -> Self
Set NLM_F_CREATE and NLM_F_REPLACE flag
Sourcepub fn set_append(self) -> Self
pub fn set_append(self) -> Self
Set NLM_F_APPEND flag
Sourcepub fn unset_flags(self, flags: u16) -> Self
pub fn unset_flags(self, flags: u16) -> Self
Set self.flags ^= self.flags & flags
Sourcepub fn op_get_dump(self, header: &Nfgenmsg) -> OpGetDump<'buf>
pub fn op_get_dump(self, header: &Nfgenmsg) -> OpGetDump<'buf>
get / dump entries
Request attributes:
Reply attributes:
- .get_tuple_orig()
- .get_tuple_reply()
- .get_status()
- .get_protoinfo()
- .get_help()
- .get_nat_src()
- .get_timeout()
- .get_mark()
- .get_counters_orig()
- .get_counters_reply()
- .get_use()
- .get_id()
- .get_nat_dst()
- .get_tuple_master()
- .get_seq_adj_orig()
- .get_seq_adj_reply()
- .get_zone()
- .get_secctx()
- .get_labels()
- .get_synproxy()
Sourcepub fn op_get_do(self, header: &Nfgenmsg) -> OpGetDo<'buf>
pub fn op_get_do(self, header: &Nfgenmsg) -> OpGetDo<'buf>
get / dump entries
Request attributes:
Reply attributes:
- .get_tuple_orig()
- .get_tuple_reply()
- .get_status()
- .get_protoinfo()
- .get_help()
- .get_nat_src()
- .get_timeout()
- .get_mark()
- .get_counters_orig()
- .get_counters_reply()
- .get_use()
- .get_id()
- .get_nat_dst()
- .get_tuple_master()
- .get_seq_adj_orig()
- .get_seq_adj_reply()
- .get_zone()
- .get_secctx()
- .get_labels()
- .get_synproxy()
Sourcepub fn op_get_stats_dump(self, header: &Nfgenmsg) -> OpGetStatsDump<'buf>
pub fn op_get_stats_dump(self, header: &Nfgenmsg) -> OpGetStatsDump<'buf>
dump pcpu conntrack stats
Reply attributes:
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for Request<'buf>
impl<'buf> RefUnwindSafe for Request<'buf>
impl<'buf> Send for Request<'buf>
impl<'buf> Sync for Request<'buf>
impl<'buf> Unpin for Request<'buf>
impl<'buf> UnsafeUnpin for Request<'buf>
impl<'buf> !UnwindSafe for Request<'buf>
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