pub type RecommendedWatcher = INotifyWatcher;
Expand description

The recommended Watcher implementation for the current platform

Aliased Type§

struct RecommendedWatcher { /* private fields */ }

Trait Implementations§

§

impl Debug for INotifyWatcher

§

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

Formats the value using the given formatter. Read more
§

impl Drop for INotifyWatcher

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl Watcher for INotifyWatcher

§

fn new<F>(event_handler: F, _config: Config) -> Result<INotifyWatcher, Error>where F: EventHandler,

Create a new watcher.

§

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

Begin watching a new path. Read more
§

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

Stop watching a path. Read more
§

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

Configure the watcher at runtime. Read more
§

fn kind() -> WatcherKind

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