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: PathBuf

The watched path, as it was passed to the watcher.

recursive_mode: RecursiveMode

Whether the watch covers the path's descendants.

Implementations

impl WatchedPath

fn new(path: PathBuf, recursive_mode: RecursiveMode) -> Self

Creates 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

impl StructuralPartialEq for WatchedPath

Auto Trait Implementations

impl Freeze for WatchedPath

impl RefUnwindSafe for WatchedPath

impl Send for WatchedPath

impl Sync for WatchedPath

impl Unpin for WatchedPath

impl UnsafeUnpin for WatchedPath

impl UnwindSafe for WatchedPath

Blanket Implementations

impl<T> Any for WatchedPath where T: 'static + ?Sized,

impl<T> Borrow<T> for WatchedPath where T: ?Sized,

impl<T> BorrowMut<T> for WatchedPath where T: ?Sized,

impl<T> CloneToUninit for WatchedPath where T: Clone,

impl<T> From<T> for WatchedPath

impl<T> ToOwned for WatchedPath where T: Clone,

impl<T, U> Into<U> for WatchedPath where U: From<T>,

impl<T, U> TryFrom<U> for WatchedPath where U: Into<T>,

impl<T, U> TryInto<U> for WatchedPath where U: TryFrom<T>,