[−][src]Struct nix::sys::inotify::AddWatchFlags
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]
fn clone(&self) -> AddWatchFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AddWatchFlags
[src]
impl Debug for AddWatchFlags
[src]
impl Eq for AddWatchFlags
[src]
impl Extend<AddWatchFlags> for AddWatchFlags
[src]
fn extend<T: IntoIterator<Item = AddWatchFlags>>(&mut self, iterator: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<AddWatchFlags> for AddWatchFlags
[src]
fn from_iter<T: IntoIterator<Item = AddWatchFlags>>(
iterator: T
) -> AddWatchFlags
[src]
iterator: T
) -> AddWatchFlags
impl Hash for AddWatchFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
fn cmp(&self, other: &AddWatchFlags) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AddWatchFlags> for AddWatchFlags
[src]
fn eq(&self, other: &AddWatchFlags) -> bool
[src]
fn ne(&self, other: &AddWatchFlags) -> bool
[src]
impl PartialOrd<AddWatchFlags> for AddWatchFlags
[src]
fn partial_cmp(&self, other: &AddWatchFlags) -> Option<Ordering>
[src]
fn lt(&self, other: &AddWatchFlags) -> bool
[src]
fn le(&self, other: &AddWatchFlags) -> bool
[src]
fn gt(&self, other: &AddWatchFlags) -> bool
[src]
fn ge(&self, other: &AddWatchFlags) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,