Struct nix::sys::socket::SockFlag [] [src]

pub struct SockFlag {
    // some fields omitted
}

Methods

impl SockFlag

fn empty() -> SockFlag

Returns an empty set of flags.

fn all() -> SockFlag

Returns the set containing all flags.

fn bits(&self) -> c_int

Returns the raw value of the flags currently stored.

fn from_bits(bits: c_int) -> Option<SockFlag>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: c_int) -> SockFlag

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: SockFlag) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: SockFlag) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: SockFlag)

Inserts the specified flags in-place.

fn remove(&mut self, other: SockFlag)

Removes the specified flags in-place.

fn toggle(&mut self, other: SockFlag)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for SockFlag

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for SockFlag

type Output = SockFlag

fn bitor(self, other: SockFlag) -> SockFlag

impl BitXor for SockFlag

type Output = SockFlag

fn bitxor(self, other: SockFlag) -> SockFlag

impl BitAnd for SockFlag

type Output = SockFlag

fn bitand(self, other: SockFlag) -> SockFlag

impl Sub for SockFlag

type Output = SockFlag

fn sub(self, other: SockFlag) -> SockFlag

impl Not for SockFlag

type Output = SockFlag

fn not(self) -> SockFlag

impl FromIterator<SockFlag> for SockFlag

fn from_iter<T: IntoIterator<Item=SockFlag>>(iterator: T) -> SockFlag

Derived Implementations

impl Hash for SockFlag

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for SockFlag

fn cmp(&self, __arg_0: &SockFlag) -> Ordering

impl PartialOrd for SockFlag

fn partial_cmp(&self, __arg_0: &SockFlag) -> Option<Ordering>

fn lt(&self, __arg_0: &SockFlag) -> bool

fn le(&self, __arg_0: &SockFlag) -> bool

fn gt(&self, __arg_0: &SockFlag) -> bool

fn ge(&self, __arg_0: &SockFlag) -> bool

impl Clone for SockFlag

fn clone(&self) -> SockFlag

fn clone_from(&mut self, source: &Self)

impl Eq for SockFlag

impl PartialEq for SockFlag

fn eq(&self, __arg_0: &SockFlag) -> bool

fn ne(&self, __arg_0: &SockFlag) -> bool

impl Copy for SockFlag