pub struct NullWatcher;Expand description
Stub Watcher implementation
Events are never delivered from this watcher.
Trait Implementations§
Source§impl Debug for NullWatcher
impl Debug for NullWatcher
Source§impl Watcher for NullWatcher
impl Watcher for NullWatcher
Source§fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
Begin watching a new path. Read more
Source§fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>where
Self: Sized,
fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>where
Self: Sized,
Create a new watcher with an initial Config.
Source§fn configure(&mut self, config: Config) -> Result<bool>
fn configure(&mut self, config: Config) -> Result<bool>
Configure the watcher at runtime. Read more
Source§fn watched_paths(&self) -> Result<Vec<(PathBuf, RecursiveMode)>>
fn watched_paths(&self) -> Result<Vec<(PathBuf, RecursiveMode)>>
Returns the currently watched paths and their recursive modes. Read more
Source§fn kind() -> WatcherKind
fn kind() -> WatcherKind
Returns the watcher kind, allowing to perform backend-specific tasks
Source§fn watch_with(&mut self, path: &Path, config: WatchPathConfig) -> Result<()>
fn watch_with(&mut self, path: &Path, config: WatchPathConfig) -> Result<()>
Begin watching a path with per-path settings. Read more
Source§fn update_paths(&mut self, ops: Vec<PathOp>) -> Result<(), UpdatePathsError>
fn update_paths(&mut self, ops: Vec<PathOp>) -> Result<(), UpdatePathsError>
Add/remove paths to watch in batch. Read more
Auto Trait Implementations§
impl Freeze for NullWatcher
impl RefUnwindSafe for NullWatcher
impl Send for NullWatcher
impl Sync for NullWatcher
impl Unpin for NullWatcher
impl UnsafeUnpin for NullWatcher
impl UnwindSafe for NullWatcher
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