pub trait PathsMut {
// Required methods
fn add(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>;
fn remove(&mut self, path: &Path) -> Result<()>;
fn commit(self: Box<Self>) -> Result<()>;
}Expand description
Providing methods for adding and removing paths to watch.
Box<dyn PathsMut> is created by Watcher::paths_mut. See its documentation for more.
Required Methods§
Sourcefn add(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
fn add(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
Add a new path to watch. See Watcher::watch for more.