Struct nix::sys::inotify::AddWatchFlags[][src]

pub struct AddWatchFlags { /* fields omitted */ }

Configuration options for inotify_add_watch.

Implementations

impl AddWatchFlags[src]

pub const IN_ACCESS: AddWatchFlags[src]

pub const IN_MODIFY: AddWatchFlags[src]

pub const IN_ATTRIB: AddWatchFlags[src]

pub const IN_CLOSE_WRITE: AddWatchFlags[src]

pub const IN_CLOSE_NOWRITE: AddWatchFlags[src]

pub const IN_OPEN: AddWatchFlags[src]

pub const IN_MOVED_FROM: AddWatchFlags[src]

pub const IN_MOVED_TO: AddWatchFlags[src]

pub const IN_CREATE: AddWatchFlags[src]

pub const IN_DELETE: AddWatchFlags[src]

pub const IN_DELETE_SELF: AddWatchFlags[src]

pub const IN_MOVE_SELF: AddWatchFlags[src]

pub const IN_UNMOUNT: AddWatchFlags[src]

pub const IN_Q_OVERFLOW: AddWatchFlags[src]

pub const IN_IGNORED: AddWatchFlags[src]

pub const IN_CLOSE: AddWatchFlags[src]

pub const IN_MOVE: AddWatchFlags[src]

pub const IN_ONLYDIR: AddWatchFlags[src]

pub const IN_DONT_FOLLOW: AddWatchFlags[src]

pub const IN_ISDIR: AddWatchFlags[src]

pub const IN_ONESHOT: AddWatchFlags[src]

pub const IN_ALL_EVENTS: AddWatchFlags[src]

pub const fn empty() -> AddWatchFlags[src]

Returns an empty set of flags

pub const fn all() -> AddWatchFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<AddWatchFlags>[src]

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

pub const fn from_bits_truncate(bits: u32) -> AddWatchFlags[src]

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

pub const unsafe fn from_bits_unchecked(bits: u32) -> AddWatchFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: AddWatchFlags) -> bool[src]

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

pub const fn contains(&self, other: AddWatchFlags) -> bool[src]

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

pub fn insert(&mut self, other: AddWatchFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: AddWatchFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: AddWatchFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: AddWatchFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for AddWatchFlags[src]

impl BitAnd<AddWatchFlags> for AddWatchFlags[src]

type Output = AddWatchFlags

The resulting type after applying the & operator.

fn bitand(self, other: AddWatchFlags) -> AddWatchFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<AddWatchFlags> for AddWatchFlags[src]

fn bitand_assign(&mut self, other: AddWatchFlags)[src]

Disables all flags disabled in the set.

impl BitOr<AddWatchFlags> for AddWatchFlags[src]

type Output = AddWatchFlags

The resulting type after applying the | operator.

fn bitor(self, other: AddWatchFlags) -> AddWatchFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<AddWatchFlags> for AddWatchFlags[src]

fn bitor_assign(&mut self, other: AddWatchFlags)[src]

Adds the set of flags.

impl BitXor<AddWatchFlags> for AddWatchFlags[src]

type Output = AddWatchFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: AddWatchFlags) -> AddWatchFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<AddWatchFlags> for AddWatchFlags[src]

fn bitxor_assign(&mut self, other: AddWatchFlags)[src]

Toggles the set of flags.

impl Clone for AddWatchFlags[src]

impl Copy for AddWatchFlags[src]

impl Debug for AddWatchFlags[src]

impl Eq for AddWatchFlags[src]

impl Extend<AddWatchFlags> for AddWatchFlags[src]

impl FromIterator<AddWatchFlags> for AddWatchFlags[src]

impl Hash for AddWatchFlags[src]

impl LowerHex for AddWatchFlags[src]

impl Not for AddWatchFlags[src]

type Output = AddWatchFlags

The resulting type after applying the ! operator.

fn not(self) -> AddWatchFlags[src]

Returns the complement of this set of flags.

impl Octal for AddWatchFlags[src]

impl Ord for AddWatchFlags[src]

impl PartialEq<AddWatchFlags> for AddWatchFlags[src]

impl PartialOrd<AddWatchFlags> for AddWatchFlags[src]

impl StructuralEq for AddWatchFlags[src]

impl StructuralPartialEq for AddWatchFlags[src]

impl Sub<AddWatchFlags> for AddWatchFlags[src]

type Output = AddWatchFlags

The resulting type after applying the - operator.

fn sub(self, other: AddWatchFlags) -> AddWatchFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<AddWatchFlags> for AddWatchFlags[src]

fn sub_assign(&mut self, other: AddWatchFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for AddWatchFlags[src]

Auto Trait Implementations

impl RefUnwindSafe for AddWatchFlags

impl Send for AddWatchFlags

impl Sync for AddWatchFlags

impl Unpin for AddWatchFlags

impl UnwindSafe for AddWatchFlags

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.