Struct rtnetlink::NetlinkFlags [−][src]
pub struct NetlinkFlags(_);
Represent the flags field in a netlink packet header.
Methods
impl NetlinkFlags
[src]
impl NetlinkFlags
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new empty flags field (no flag is set)
pub fn set_request(&mut self) -> &mut Self
[src]
pub fn set_request(&mut self) -> &mut Self
Set the NLM_F_REQUEST
flag
pub fn has_request(self) -> bool
[src]
pub fn has_request(self) -> bool
Check if the NLM_F_REQUEST
flag is set
pub fn set_multipart(&mut self) -> &mut Self
[src]
pub fn set_multipart(&mut self) -> &mut Self
Set the NLM_MULTIPART
flag
pub fn has_multipart(self) -> bool
[src]
pub fn has_multipart(self) -> bool
Check if the NLM_MULTIPART
flag is set
pub fn set_ack(&mut self) -> &mut Self
[src]
pub fn set_ack(&mut self) -> &mut Self
Set the NLM_F_ACK
flag
pub fn has_ack(self) -> bool
[src]
pub fn has_ack(self) -> bool
Check if the NLM_F_ACK
flag is set
pub fn set_echo(&mut self) -> &mut Self
[src]
pub fn set_echo(&mut self) -> &mut Self
Set the NLM_F_ECHO
flag
pub fn has_echo(self) -> bool
[src]
pub fn has_echo(self) -> bool
Check if the NLM_F_ECHO
flag is set
pub fn set_dump_intr(&mut self) -> &mut Self
[src]
pub fn set_dump_intr(&mut self) -> &mut Self
Set the NLM_F_DUMP_INTR
flag
pub fn has_dump_intr(self) -> bool
[src]
pub fn has_dump_intr(self) -> bool
Check if the NLM_F_DUMP_INTR
flag is set
pub fn set_dump_filterd(&mut self) -> &mut Self
[src]
pub fn set_dump_filterd(&mut self) -> &mut Self
Set the NLM_F_DUMP_FILTERED
flag
pub fn has_dump_filterd(self) -> bool
[src]
pub fn has_dump_filterd(self) -> bool
Check if the NLM_F_DUMP_FILTERED
flag is set
pub fn set_root(&mut self) -> &mut Self
[src]
pub fn set_root(&mut self) -> &mut Self
Set the NLM_F_ROOT
flag
pub fn has_root(self) -> bool
[src]
pub fn has_root(self) -> bool
Check if the NLM_F_ROOT
flag is set
pub fn set_match(&mut self) -> &mut Self
[src]
pub fn set_match(&mut self) -> &mut Self
Set the NLM_F_MATCH
flag
pub fn has_match(self) -> bool
[src]
pub fn has_match(self) -> bool
Check if the NLM_F_MATCH
flag is set
pub fn set_atomic(&mut self) -> &mut Self
[src]
pub fn set_atomic(&mut self) -> &mut Self
Set the NLM_F_ATOMIC
flag
pub fn has_atomic(self) -> bool
[src]
pub fn has_atomic(self) -> bool
Check if the NLM_F_ATOMIC
flag is set
pub fn set_dump(&mut self) -> &mut Self
[src]
pub fn set_dump(&mut self) -> &mut Self
Set the NLM_F_DUMP
flag
pub fn has_dump(self) -> bool
[src]
pub fn has_dump(self) -> bool
Check if the NLM_F_DUMP
flag is set
pub fn set_replace(&mut self) -> &mut Self
[src]
pub fn set_replace(&mut self) -> &mut Self
Set the NLM_F_REPLACE
flag
pub fn has_replace(self) -> bool
[src]
pub fn has_replace(self) -> bool
Check if the NLM_F_REPLACE
flag is set
pub fn set_excl(&mut self) -> &mut Self
[src]
pub fn set_excl(&mut self) -> &mut Self
Set the NLM_F_EXCL
flag
pub fn has_excl(self) -> bool
[src]
pub fn has_excl(self) -> bool
Check if the NLM_F_EXCL
flag is set
pub fn set_create(&mut self) -> &mut Self
[src]
pub fn set_create(&mut self) -> &mut Self
Set the NLM_F_CREATE
flag
pub fn has_create(self) -> bool
[src]
pub fn has_create(self) -> bool
Check if the NLM_F_CREATE
flag is set
pub fn set_append(&mut self) -> &mut Self
[src]
pub fn set_append(&mut self) -> &mut Self
Set the NLM_F_APPEND
flag
pub fn has_append(self) -> bool
[src]
pub fn has_append(self) -> bool
Check if the NLM_F_APPEND
flag is set
pub fn set_nonrec(&mut self) -> &mut Self
[src]
pub fn set_nonrec(&mut self) -> &mut Self
Set the NLM_F_NONREC
flag
pub fn has_nonrec(self) -> bool
[src]
pub fn has_nonrec(self) -> bool
Check if the NLM_F_NONREC
flag is set
pub fn set_ack_tvls(&mut self) -> &mut Self
[src]
pub fn set_ack_tvls(&mut self) -> &mut Self
Set the NLM_F_ACK_TLVS
flag
pub fn has_ack_tvls(self) -> bool
[src]
pub fn has_ack_tvls(self) -> bool
Check if the NLM_F_ACK_TLVS
flag is set
pub fn set_capped(&mut self) -> &mut Self
[src]
pub fn set_capped(&mut self) -> &mut Self
Set the NLM_F_CAPPED
flag
pub fn has_capped(self) -> bool
[src]
pub fn has_capped(self) -> bool
Check if the NLM_F_CAPPED
flag is set
Trait Implementations
impl Debug for NetlinkFlags
[src]
impl Debug for NetlinkFlags
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for NetlinkFlags
[src]
impl PartialEq for NetlinkFlags
fn eq(&self, other: &NetlinkFlags) -> bool
[src]
fn eq(&self, other: &NetlinkFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NetlinkFlags) -> bool
[src]
fn ne(&self, other: &NetlinkFlags) -> bool
This method tests for !=
.
impl Eq for NetlinkFlags
[src]
impl Eq for NetlinkFlags
impl Clone for NetlinkFlags
[src]
impl Clone for NetlinkFlags
fn clone(&self) -> NetlinkFlags
[src]
fn clone(&self) -> NetlinkFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for NetlinkFlags
[src]
impl Copy for NetlinkFlags
impl Hash for NetlinkFlags
[src]
impl Hash for NetlinkFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<u16> for NetlinkFlags
[src]
impl From<u16> for NetlinkFlags
impl<'a> From<&'a NetlinkFlags> for u16
[src]
impl<'a> From<&'a NetlinkFlags> for u16
fn from(flags: &'a NetlinkFlags) -> u16
[src]
fn from(flags: &'a NetlinkFlags) -> u16
Performs the conversion.
impl From<NetlinkFlags> for u16
[src]
impl From<NetlinkFlags> for u16
fn from(flags: NetlinkFlags) -> u16
[src]
fn from(flags: NetlinkFlags) -> u16
Performs the conversion.
impl Default for NetlinkFlags
[src]
impl Default for NetlinkFlags
Auto Trait Implementations
impl Send for NetlinkFlags
impl Send for NetlinkFlags
impl Sync for NetlinkFlags
impl Sync for NetlinkFlags