pub struct FileWatcher { /* private fields */ }Implementations§
Source§impl FileWatcher
impl FileWatcher
Sourcepub fn with_config(config: &WatchConfig) -> Result<Self, Error>
pub fn with_config(config: &WatchConfig) -> Result<Self, Error>
Creates a new FileWatcher with custom configuration.
pub fn watch(&mut self, path: &Path) -> Result<(), Error>
pub fn wait_for_change(&self) -> bool
Trait Implementations§
Source§impl Default for FileWatcher
Note: The Default implementation for FileWatcher may panic if the underlying
file watcher cannot be created. Prefer using FileWatcher::new() for production
code to properly handle potential errors.
impl Default for FileWatcher
Note: The Default implementation for FileWatcher may panic if the underlying
file watcher cannot be created. Prefer using FileWatcher::new() for production
code to properly handle potential errors.
Auto Trait Implementations§
impl Freeze for FileWatcher
impl RefUnwindSafe for FileWatcher
impl Send for FileWatcher
impl !Sync for FileWatcher
impl Unpin for FileWatcher
impl UnwindSafe for FileWatcher
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