pub struct ThreadHandle<T> { /* private fields */ }Expand description
An owned OS thread, joined when the handle drops.
Dropping the handle blocks until the thread ends, so only an owner whose thread ends on a bounded signal holds one. A panic in the thread was logged when it happened; the drop discards it.
Implementations§
Trait Implementations§
Source§impl<T> Debug for ThreadHandle<T>
impl<T> Debug for ThreadHandle<T>
Source§impl<T> Drop for ThreadHandle<T>
impl<T> Drop for ThreadHandle<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ThreadHandle<T>
impl<T> !UnwindSafe for ThreadHandle<T>
impl<T> Freeze for ThreadHandle<T>
impl<T> Send for ThreadHandle<T>
impl<T> Sync for ThreadHandle<T>
impl<T> Unpin for ThreadHandle<T>
impl<T> UnsafeUnpin for ThreadHandle<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