Struct nix::mount::MntFlags [] [src]

pub struct MntFlags {
    // some fields omitted
}

Methods

impl MntFlags

fn empty() -> MntFlags

Returns an empty set of flags.

fn all() -> MntFlags

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

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

fn from_bits_truncate(bits: c_int) -> MntFlags

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

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

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

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

fn insert(&mut self, other: MntFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: MntFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: MntFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for MntFlags

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

impl BitOr for MntFlags

type Output = MntFlags

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

impl BitXor for MntFlags

type Output = MntFlags

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

impl BitAnd for MntFlags

type Output = MntFlags

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

impl Sub for MntFlags

type Output = MntFlags

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

impl Not for MntFlags

type Output = MntFlags

fn not(self) -> MntFlags

impl FromIterator<MntFlags> for MntFlags

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

Derived Implementations

impl Hash for MntFlags

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

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

impl Ord for MntFlags

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

impl PartialOrd for MntFlags

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

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

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

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

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

impl Clone for MntFlags

fn clone(&self) -> MntFlags

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

impl Eq for MntFlags

impl PartialEq for MntFlags

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

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

impl Copy for MntFlags