notify

Type Alias RecommendedWatcher

Source
pub type RecommendedWatcher = INotifyWatcher;
Expand description

The recommended Watcher implementation for the current platform

Aliased Type§

struct RecommendedWatcher { /* private fields */ }

Trait Implementations

Source§

impl Debug for INotifyWatcher

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for INotifyWatcher

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Watcher for INotifyWatcher

Source§

fn new<F: EventHandler>(event_handler: F, _config: Config) -> Result<Self>

Create a new watcher.

Source§

fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>

Begin watching a new path. Read more
Source§

fn unwatch(&mut self, path: &Path) -> Result<()>

Stop watching a path. Read more
Source§

fn configure(&mut self, config: Config) -> Result<bool>

Configure the watcher at runtime. Read more
Source§

fn kind() -> WatcherKind

Returns the watcher kind, allowing to perform backend-specific tasks