Struct nix::sys::signalfd::SfdFlags [] [src]

pub struct SfdFlags {
    // some fields omitted
}

Methods

impl SfdFlags

fn empty() -> SfdFlags

Returns an empty set of flags.

fn all() -> SfdFlags

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<SfdFlags>

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

fn from_bits_truncate(bits: c_int) -> SfdFlags

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: SfdFlags) -> bool

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

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

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

fn insert(&mut self, other: SfdFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: SfdFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: SfdFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for SfdFlags

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

impl BitOr for SfdFlags

type Output = SfdFlags

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

impl BitXor for SfdFlags

type Output = SfdFlags

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

impl BitAnd for SfdFlags

type Output = SfdFlags

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

impl Sub for SfdFlags

type Output = SfdFlags

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

impl Not for SfdFlags

type Output = SfdFlags

fn not(self) -> SfdFlags

impl FromIterator<SfdFlags> for SfdFlags

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

Derived Implementations

impl Hash for SfdFlags

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

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

impl Ord for SfdFlags

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

impl PartialOrd for SfdFlags

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

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

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

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

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

impl Clone for SfdFlags

fn clone(&self) -> SfdFlags

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

impl Eq for SfdFlags

impl PartialEq for SfdFlags

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

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

impl Copy for SfdFlags