Struct dir_meta::WatcherOutcome
source · pub struct WatcherOutcome {
pub descriptor: i32,
pub mask: WatcherEvents,
pub cookie: u32,
pub name: Option<String>,
}Expand description
This directory inherits most types from inotify crate
The outcome of a watched file or directory
Fields§
§descriptor: i32Identifies the watch this event originates from This WatchDescriptor is equal to the one that Watches::add returned when interest for this event was registered. The WatchDescriptor can be used to remove the watch using Watches::remove, thereby preventing future events of this type from being created.
mask: WatcherEventsIndicates what kind of event this is
Connects related events to each other When a file is renamed, this results two events: MOVED_FROM and MOVED_TO. The cookie field will be the same for both of them, thereby making is possible to connect the event pair.
name: Option<String>The name of the file the event originates from This field is set only if the subject of the event is a file or directory in a watched directory. If the event concerns a file or directory that is watched directly, name will be None.
Trait Implementations§
source§impl Clone for WatcherOutcome
impl Clone for WatcherOutcome
source§fn clone(&self) -> WatcherOutcome
fn clone(&self) -> WatcherOutcome
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WatcherOutcome
impl Debug for WatcherOutcome
source§impl Ord for WatcherOutcome
impl Ord for WatcherOutcome
source§fn cmp(&self, other: &WatcherOutcome) -> Ordering
fn cmp(&self, other: &WatcherOutcome) -> 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 WatcherOutcome
impl PartialEq for WatcherOutcome
source§fn eq(&self, other: &WatcherOutcome) -> bool
fn eq(&self, other: &WatcherOutcome) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for WatcherOutcome
impl PartialOrd for WatcherOutcome
source§fn partial_cmp(&self, other: &WatcherOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &WatcherOutcome) -> 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