pub struct JoinHandle<R>(/* private fields */);Expand description
Join handle
Implementations§
Source§impl<R> JoinHandle<R>
impl<R> JoinHandle<R>
Sourcepub fn join(self) -> Result<R, ThreadPoolDisconnected>
pub fn join(self) -> Result<R, ThreadPoolDisconnected>
Block the current thread until job finished
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for JoinHandle<R>
impl<R> RefUnwindSafe for JoinHandle<R>
impl<R> Send for JoinHandle<R>where
R: Send,
impl<R> Sync for JoinHandle<R>where
R: Send,
impl<R> Unpin for JoinHandle<R>
impl<R> UnwindSafe for JoinHandle<R>
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