pub struct ThreadInterrupt { /* private fields */ }
Expand description
| A helper class for interruptible sleeps. | Calling operator() will interrupt | any current sleep, and after that point | operator bool() will return true until | reset. |
Implementations§
Trait Implementations§
impl Send for ThreadInterrupt
impl Sync for ThreadInterrupt
Auto Trait Implementations§
impl !Freeze for ThreadInterrupt
impl RefUnwindSafe for ThreadInterrupt
impl Unpin for ThreadInterrupt
impl UnwindSafe for ThreadInterrupt
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