pub struct WatchHandle { /* private fields */ }Expand description
A running watch. Dropping it stops the watcher and waits for its thread to finish.
Held rather than detached on purpose: a background thread that outlives the handle its caller was given is a leak that only shows up as a build mysteriously running after the caller thought it had stopped.
Implementations§
Source§impl WatchHandle
impl WatchHandle
Trait Implementations§
Source§impl Drop for WatchHandle
impl Drop for WatchHandle
Auto Trait Implementations§
impl !RefUnwindSafe for WatchHandle
impl !UnwindSafe for WatchHandle
impl Freeze for WatchHandle
impl Send for WatchHandle
impl Sync for WatchHandle
impl Unpin for WatchHandle
impl UnsafeUnpin for WatchHandle
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