pub struct INotifyWatcher { /* private fields */ }Expand description
Watcher implementation based on inotify
Trait Implementations§
Source§impl Debug for INotifyWatcher
impl Debug for INotifyWatcher
Source§impl Drop for INotifyWatcher
impl Drop for INotifyWatcher
Source§impl Watcher for INotifyWatcher
impl Watcher for INotifyWatcher
Source§fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>
fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>
Create a new watcher.
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 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 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 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 INotifyWatcher
impl RefUnwindSafe for INotifyWatcher
impl Send for INotifyWatcher
impl Sync for INotifyWatcher
impl Unpin for INotifyWatcher
impl UnsafeUnpin for INotifyWatcher
impl UnwindSafe for INotifyWatcher
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