pub struct WatchGuard { /* private fields */ }Expand description
Keeps the filesystem watcher alive until dropped.
The notify callback holds a clone of the same Arc as this guard, and the
debouncer owns the callback. Drop takes the debouncer out of the mutex so
that cycle breaks and the notify thread stops.
Trait Implementations§
Source§impl Drop for WatchGuard
impl Drop for WatchGuard
Auto Trait Implementations§
impl Forget for WatchGuard
impl Freeze for WatchGuard
impl RefUnwindSafe for WatchGuard
impl Send for WatchGuard
impl Sync for WatchGuard
impl Unpin for WatchGuard
impl UnsafeUnpin for WatchGuard
impl UnwindSafe 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