pub enum PathOp {
Watch(PathBuf, WatchPathConfig),
Unwatch(PathBuf),
}Expand description
An operation to apply to a watcher
See Watcher::update_paths for more information.
Variants§
Implementations§
Source§impl PathOp
impl PathOp
Sourcepub fn watch_recursive<P: Into<PathBuf>>(path: P) -> Self
pub fn watch_recursive<P: Into<PathBuf>>(path: P) -> Self
Watch the path with RecursiveMode::Recursive
Sourcepub fn watch_non_recursive<P: Into<PathBuf>>(path: P) -> Self
pub fn watch_non_recursive<P: Into<PathBuf>>(path: P) -> Self
Watch the path with RecursiveMode::NonRecursive
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathOp
impl RefUnwindSafe for PathOp
impl Send for PathOp
impl Sync for PathOp
impl Unpin for PathOp
impl UnsafeUnpin for PathOp
impl UnwindSafe for PathOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more