Struct WatchedPath
#[non_exhaustive]
pub struct WatchedPath { pub path: PathBuf, pub recursive_mode: RecursiveMode }
A registered path and its recursive mode, returned by
Watcher::watched_paths.
Fields
path: PathBufThe watched path, as it was passed to the watcher.
recursive_mode: RecursiveModeWhether the watch covers the path's descendants.
Implementations
impl WatchedPath
fn new(path: PathBuf, recursive_mode: RecursiveMode) -> SelfCreates a watched path with the given path and recursive mode.
Examples
use notify::{RecursiveMode, WatchedPath}; let watched = WatchedPath::new("src".into(), RecursiveMode::Recursive);
Trait Implementations
impl Clone for WatchedPath
fn clone(&self) -> Self
impl Debug for WatchedPath
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for WatchedPath
impl Hash for WatchedPath
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for WatchedPath
fn eq(&self, other: &Self) -> bool