pub struct Watcher { /* private fields */ }Implementations§
Source§impl Watcher
impl Watcher
pub fn shutdown(&self)
pub fn shutdown_guard(&self) -> ShutdownOnDrop
pub fn add_root( &self, root: &Path, recursive: bool, root_crawled: impl FnOnce(bool) + 'static + Send, ) -> Result<()>
pub fn setup_walk( &self, setup_walk: Box<dyn FnMut(&Path) -> WalkBuilder + Send>, recrawl: bool, )
pub fn set_settle_time(&self, settle_time: Duration)
pub fn add_handler(&self, handler: impl FnMut(Events) -> bool + Send + 'static)
pub fn new() -> Result<Self>
pub fn start(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Watcher
impl RefUnwindSafe for Watcher
impl Send for Watcher
impl Sync for Watcher
impl Unpin for Watcher
impl UnwindSafe for Watcher
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