Guard a stoppable thread
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).
impl<T> !RefUnwindSafe for Stopping<T>
impl<T> !UnwindSafe for Stopping<T>
type Error = Infallible
The type returned in the event of a conversion error.