Struct netlink_packet::NetlinkFlags
source · pub struct NetlinkFlags(_);
Expand description
Represent the flags field in a netlink packet header.
Implementations§
source§impl NetlinkFlags
impl NetlinkFlags
sourcepub fn set_request(&mut self) -> &mut Self
pub fn set_request(&mut self) -> &mut Self
Set the NLM_F_REQUEST
flag
sourcepub fn has_request(self) -> bool
pub fn has_request(self) -> bool
Check if the NLM_F_REQUEST
flag is set
sourcepub fn set_multipart(&mut self) -> &mut Self
pub fn set_multipart(&mut self) -> &mut Self
Set the NLM_F_MULTIPART
flag
sourcepub fn has_multipart(self) -> bool
pub fn has_multipart(self) -> bool
Check if the NLM_F_MULTIPART
flag is set
sourcepub fn set_dump_intr(&mut self) -> &mut Self
pub fn set_dump_intr(&mut self) -> &mut Self
Set the NLM_F_DUMP_INTR
flag
sourcepub fn has_dump_intr(self) -> bool
pub fn has_dump_intr(self) -> bool
Check if the NLM_F_DUMP_INTR
flag is set
sourcepub fn set_dump_filterd(&mut self) -> &mut Self
pub fn set_dump_filterd(&mut self) -> &mut Self
Set the NLM_F_DUMP_FILTERED
flag
sourcepub fn has_dump_filterd(self) -> bool
pub fn has_dump_filterd(self) -> bool
Check if the NLM_F_DUMP_FILTERED
flag is set
sourcepub fn set_atomic(&mut self) -> &mut Self
pub fn set_atomic(&mut self) -> &mut Self
Set the NLM_F_ATOMIC
flag
sourcepub fn has_atomic(self) -> bool
pub fn has_atomic(self) -> bool
Check if the NLM_F_ATOMIC
flag is set
sourcepub fn set_replace(&mut self) -> &mut Self
pub fn set_replace(&mut self) -> &mut Self
Set the NLM_F_REPLACE
flag
sourcepub fn has_replace(self) -> bool
pub fn has_replace(self) -> bool
Check if the NLM_F_REPLACE
flag is set
sourcepub fn set_create(&mut self) -> &mut Self
pub fn set_create(&mut self) -> &mut Self
Set the NLM_F_CREATE
flag
sourcepub fn has_create(self) -> bool
pub fn has_create(self) -> bool
Check if the NLM_F_CREATE
flag is set
sourcepub fn set_append(&mut self) -> &mut Self
pub fn set_append(&mut self) -> &mut Self
Set the NLM_F_APPEND
flag
sourcepub fn has_append(self) -> bool
pub fn has_append(self) -> bool
Check if the NLM_F_APPEND
flag is set
sourcepub fn set_nonrec(&mut self) -> &mut Self
pub fn set_nonrec(&mut self) -> &mut Self
Set the NLM_F_NONREC
flag
sourcepub fn has_nonrec(self) -> bool
pub fn has_nonrec(self) -> bool
Check if the NLM_F_NONREC
flag is set
sourcepub fn set_ack_tvls(&mut self) -> &mut Self
pub fn set_ack_tvls(&mut self) -> &mut Self
Set the NLM_F_ACK_TLVS
flag
sourcepub fn has_ack_tvls(self) -> bool
pub fn has_ack_tvls(self) -> bool
Check if the NLM_F_ACK_TLVS
flag is set
sourcepub fn set_capped(&mut self) -> &mut Self
pub fn set_capped(&mut self) -> &mut Self
Set the NLM_F_CAPPED
flag
sourcepub fn has_capped(self) -> bool
pub fn has_capped(self) -> bool
Check if the NLM_F_CAPPED
flag is set
Trait Implementations§
source§impl Clone for NetlinkFlags
impl Clone for NetlinkFlags
source§fn clone(&self) -> NetlinkFlags
fn clone(&self) -> NetlinkFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more