pub struct ReadDirectoryChangesWatcher { /* private fields */ }Expand description
Watcher implementation based on ReadDirectoryChanges
Implementations§
Source§impl ReadDirectoryChangesWatcher
impl ReadDirectoryChangesWatcher
pub fn create( event_handler: Arc<Mutex<dyn EventHandler>>, ) -> Result<ReadDirectoryChangesWatcher>
Trait Implementations§
Source§impl Debug for ReadDirectoryChangesWatcher
impl Debug for ReadDirectoryChangesWatcher
Source§impl Drop for ReadDirectoryChangesWatcher
impl Drop for ReadDirectoryChangesWatcher
Source§impl Watcher for ReadDirectoryChangesWatcher
impl Watcher for ReadDirectoryChangesWatcher
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 with an initial Config.
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 configure(&mut self, config: Config) -> Result<bool>
fn configure(&mut self, config: Config) -> Result<bool>
Configure the watcher at runtime. Read more
Source§fn kind() -> WatcherKind
fn kind() -> WatcherKind
Returns the watcher kind, allowing to perform backend-specific tasks
impl Send for ReadDirectoryChangesWatcher
impl Sync for ReadDirectoryChangesWatcher
Auto Trait Implementations§
impl Freeze for ReadDirectoryChangesWatcher
impl RefUnwindSafe for ReadDirectoryChangesWatcher
impl Unpin for ReadDirectoryChangesWatcher
impl UnwindSafe for ReadDirectoryChangesWatcher
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