Struct ore::thread::JoinOnDropHandle [−][src]
pub struct JoinOnDropHandle<T>(Option<JoinHandle<T>>);
Expand description
Wraps a JoinHandle
so that the child thread is joined when the handle is
dropped, rather than detached. If the child thread panics,
JoinOnDropHandle
will panic when dropped.
Tuple Fields
0: Option<JoinHandle<T>>
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for JoinOnDropHandle<T>
impl<T> Send for JoinOnDropHandle<T>
impl<T> Sync for JoinOnDropHandle<T>
impl<T> Unpin for JoinOnDropHandle<T>
impl<T> !UnwindSafe for JoinOnDropHandle<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more