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§
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