pub struct WatchGuard { /* private fields */ }Expand description
Handle for a running vault watcher.
Dropping the guard stops the fs watcher and joins the debounce thread. Events already settled may still fire callbacks before the drop returns; nothing fires after it.
Trait Implementations§
Source§impl Drop for WatchGuard
impl Drop for WatchGuard
Auto Trait Implementations§
impl !RefUnwindSafe for WatchGuard
impl !UnwindSafe for WatchGuard
impl Freeze for WatchGuard
impl Send for WatchGuard
impl Sync for WatchGuard
impl Unpin for WatchGuard
impl UnsafeUnpin for WatchGuard
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