pub struct WatchHandle { /* private fields */ }Expand description
A running watch. Dropping it does not stop the watch; call
WatchHandle::close to stop it deterministically (native closeWatcher).
Implementations§
Source§impl WatchHandle
impl WatchHandle
Sourcepub fn request_stop(&self)
pub fn request_stop(&self)
Request stop without joining (useful from a drop path).
Trait Implementations§
Source§impl Drop for WatchHandle
impl Drop for WatchHandle
Auto Trait Implementations§
impl Freeze for WatchHandle
impl RefUnwindSafe for WatchHandle
impl Send for WatchHandle
impl Sync for WatchHandle
impl Unpin for WatchHandle
impl UnsafeUnpin for WatchHandle
impl UnwindSafe 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