pub struct Stopping<T> { /* private fields */ }
Expand description
Guard a stoppable thread
When Stopping
is dropped (usually by going out of scope), the contained
thread will be stopped.
Note: This does not guarantee that stop()
will be called (the original
scoped thread was removed from stdlib for this reason).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Stopping<T>
impl<T> !RefUnwindSafe for Stopping<T>
impl<T> Send for Stopping<T>
impl<T> Sync for Stopping<T>
impl<T> Unpin for Stopping<T>
impl<T> !UnwindSafe for Stopping<T>
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