Enum PathOp
#[non_exhaustive]
pub enum PathOp
An operation to apply to a watcher
See Watcher::update_paths for more information.
Variants
-
Watch(PathBuf, WatchPathConfig) Path should be watched
-
Unwatch(PathBuf) Path should be unwatched
Implementations
impl PathOp
fn watch_recursive<P: Into<PathBuf>>(path: P) -> SelfWatch the path with
RecursiveMode::Recursivefn watch_non_recursive<P: Into<PathBuf>>(path: P) -> SelfWatch the path with
RecursiveMode::NonRecursivefn unwatch<P: Into<PathBuf>>(path: P) -> SelfUnwatch the path
fn as_path(&self) -> &PathReturns the path associated with this operation.
fn into_path(self) -> PathBufReturns the path associated with this operation.
Trait Implementations
impl Debug for PathOp
fn fmt(&self, f: &mut Formatter<'_>) -> Result