pub struct TaskHandle<T: 'static> { /* private fields */ }
Expand description
Handle to a running or waiting task on a ThreadPool
.
These should be passed into ThreadPool::join_task
in the same order as
they were created with ThreadPool::spawn_task
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TaskHandle<T>
impl<T> RefUnwindSafe for TaskHandle<T>where
T: RefUnwindSafe,
impl<T> Send for TaskHandle<T>where
T: Sync,
impl<T> Sync for TaskHandle<T>where
T: Sync,
impl<T> Unpin for TaskHandle<T>
impl<T> UnwindSafe for TaskHandle<T>where
T: RefUnwindSafe,
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