Enum dir_meta::WatcherEvents
source · pub enum WatcherEvents {
Show 17 variants
Access,
Attrib,
CloseWrite,
CloseNoWrite,
Create,
Delete,
DeleteSelf,
Modify,
MoveSelf,
MovedFrom,
MovedTo,
Open,
Ignored,
IsDir,
QueueOverflow,
Unmount,
Unsupported,
}Expand description
This directory inherits most types from inotify crate
Events triggered from watching a directory or file
Variants§
Access
File was accessed
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
Attrib
Metadata (permissions, timestamps, …) changed
When watching a directory, this event can be triggered for the directory itself, as well as objects inside the directory.
CloseWrite
File opened for writing was closed
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
CloseNoWrite
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.
Create
File/directory created in watched directory
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
Delete
File/directory deleted from watched directory
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
DeleteSelf
Watched file/directory was deleted
Modify
File was modified
When watching a directory, this event is only triggered for objects inside the directory, not the directory itself.
MoveSelf
Watched file/directory was moved
MovedFrom
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.
MovedTo
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.
Open
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.
Ignored
Watch was removed
This event will be generated, if the watch was removed explicitly
(via [Watches::remove]), or automatically (because the file was
deleted or the file system was unmounted).
IsDir
Event related to a directory
The subject of the event is a directory.
QueueOverflow
Event queue overflowed
The event queue has overflowed and events have presumably been lost.
Unmount
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.
Unsupported
Current event is unsupported
Trait Implementations§
source§impl Clone for WatcherEvents
impl Clone for WatcherEvents
source§fn clone(&self) -> WatcherEvents
fn clone(&self) -> WatcherEvents
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WatcherEvents
impl Debug for WatcherEvents
source§impl From<EventMask> for WatcherEvents
impl From<EventMask> for WatcherEvents
source§impl Hash for WatcherEvents
impl Hash for WatcherEvents
source§impl Ord for WatcherEvents
impl Ord for WatcherEvents
source§fn cmp(&self, other: &WatcherEvents) -> Ordering
fn cmp(&self, other: &WatcherEvents) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for WatcherEvents
impl PartialEq for WatcherEvents
source§fn eq(&self, other: &WatcherEvents) -> bool
fn eq(&self, other: &WatcherEvents) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for WatcherEvents
impl PartialOrd for WatcherEvents
source§fn partial_cmp(&self, other: &WatcherEvents) -> Option<Ordering>
fn partial_cmp(&self, other: &WatcherEvents) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more