Struct inotify::EventMask [−][src]
pub struct EventMask { /* fields omitted */ }
Expand description
Implementations
impl EventMask
[src]
impl EventMask
[src]pub const ACCESS: EventMask
[src]
pub const ACCESS: EventMask
[src]File was accessed
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const ATTRIB: EventMask
[src]
pub const ATTRIB: EventMask
[src]Metadata (permissions, timestamps, …) changed
When watching a directory, this event can be triggered for the directory itself, as well as objects inside the directory.
pub const CLOSE_WRITE: EventMask
[src]
pub const CLOSE_WRITE: EventMask
[src]File opened for writing was closed
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const CLOSE_NOWRITE: EventMask
[src]
pub const CLOSE_NOWRITE: EventMask
[src]File or directory not opened for writing was closed
When watching a directory, this event can be triggered for the directory itself, as well as objects inside the directory.
pub const CREATE: EventMask
[src]
pub const CREATE: EventMask
[src]File/directory created in watched directory
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const DELETE: EventMask
[src]
pub const DELETE: EventMask
[src]File/directory deleted from watched directory
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const DELETE_SELF: EventMask
[src]
pub const DELETE_SELF: EventMask
[src]Watched file/directory was deleted
pub const MODIFY: EventMask
[src]
pub const MODIFY: EventMask
[src]File was modified
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const MOVED_FROM: EventMask
[src]
pub const MOVED_FROM: EventMask
[src]File was renamed/moved; watched directory contained old name
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const MOVED_TO: EventMask
[src]
pub const MOVED_TO: EventMask
[src]File was renamed/moved; watched directory contains new name
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
pub const OPEN: EventMask
[src]
pub const OPEN: EventMask
[src]File or directory was opened
When watching a directory, this event can be triggered for the directory itself, as well as objects inside the directory.
See inotify_sys::IN_OPEN
.
pub const IGNORED: EventMask
[src]
pub const IGNORED: EventMask
[src]Watch was removed
This event will be generated, if the watch was removed explicitly
(via [Inotify::rm_watch
]), or automatically (because the file was
deleted or the file system was unmounted).
pub const Q_OVERFLOW: EventMask
[src]
pub const Q_OVERFLOW: EventMask
[src]Event queue overflowed
The event queue has overflowed and events have presumably been lost.
pub const UNMOUNT: EventMask
[src]
pub const UNMOUNT: EventMask
[src]File system containing watched object was unmounted. File system was unmounted
The file system that contained the watched object has been
unmounted. An event with WatchMask::IGNORED
will subsequently be
generated for the same watch descriptor.
pub fn from_bits(bits: u32) -> Option<EventMask>
[src]
pub fn from_bits(bits: u32) -> Option<EventMask>
[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) -> EventMask
[src]
pub const fn from_bits_truncate(bits: u32) -> EventMask
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> EventMask
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> EventMask
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: EventMask) -> bool
[src]
pub const fn intersects(&self, other: EventMask) -> bool
[src]Returns true
if there are flags common to both self
and other
.
Trait Implementations
impl BitAndAssign<EventMask> for EventMask
[src]
impl BitAndAssign<EventMask> for EventMask
[src]fn bitand_assign(&mut self, other: EventMask)
[src]
fn bitand_assign(&mut self, other: EventMask)
[src]Disables all flags disabled in the set.
impl BitOrAssign<EventMask> for EventMask
[src]
impl BitOrAssign<EventMask> for EventMask
[src]fn bitor_assign(&mut self, other: EventMask)
[src]
fn bitor_assign(&mut self, other: EventMask)
[src]Adds the set of flags.
impl BitXorAssign<EventMask> for EventMask
[src]
impl BitXorAssign<EventMask> for EventMask
[src]fn bitxor_assign(&mut self, other: EventMask)
[src]
fn bitxor_assign(&mut self, other: EventMask)
[src]Toggles the set of flags.
impl Extend<EventMask> for EventMask
[src]
impl Extend<EventMask> for EventMask
[src]fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<EventMask> for EventMask
[src]
impl FromIterator<EventMask> for EventMask
[src]impl Ord for EventMask
[src]
impl Ord for EventMask
[src]impl PartialOrd<EventMask> for EventMask
[src]
impl PartialOrd<EventMask> for EventMask
[src]fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<EventMask> for EventMask
[src]
impl SubAssign<EventMask> for EventMask
[src]fn sub_assign(&mut self, other: EventMask)
[src]
fn sub_assign(&mut self, other: EventMask)
[src]Disables all flags enabled in the set.
impl Copy for EventMask
[src]
impl Eq for EventMask
[src]
impl StructuralEq for EventMask
[src]
impl StructuralPartialEq for EventMask
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventMask
impl Send for EventMask
impl Sync for EventMask
impl Unpin for EventMask
impl UnwindSafe for EventMask
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more