pub struct JoinHandle { /* private fields */ }Expand description
Awaiting it waits for the spawned task to finish.
Implementations§
Source§impl JoinHandle
impl JoinHandle
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether the task has completed or was cancelled.
Trait Implementations§
Source§impl Future for JoinHandle
impl Future for JoinHandle
Auto Trait Implementations§
impl !RefUnwindSafe for JoinHandle
impl !Send for JoinHandle
impl !Sync for JoinHandle
impl !UnwindSafe for JoinHandle
impl Freeze for JoinHandle
impl Unpin for JoinHandle
impl UnsafeUnpin for JoinHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more