Struct glommio::task::JoinHandle [−][src]
pub struct JoinHandle<R> { /* fields omitted */ }
A handle that awaits the result of a task.
This type is a future that resolves to an Option<R>
where:
None
indicates the task has panicked or was canceled.Some(result)
indicates the task has completed withresult
of typeR
.
Implementations
impl<R> JoinHandle<R>
[src]
impl<R> JoinHandle<R>
[src]Trait Implementations
impl<R> Drop for JoinHandle<R>
[src]
impl<R> Drop for JoinHandle<R>
[src]impl<R> Future for JoinHandle<R>
[src]
impl<R> Future for JoinHandle<R>
[src]impl<R> Unpin for JoinHandle<R>
[src]
impl<R> Unpin for JoinHandle<R>
[src]Auto Trait Implementations
impl<R> RefUnwindSafe for JoinHandle<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for JoinHandle<R> where
R: RefUnwindSafe,
impl<R> !Send for JoinHandle<R>
impl<R> !Send for JoinHandle<R>
impl<R> !Sync for JoinHandle<R>
impl<R> !Sync for JoinHandle<R>
impl<R> UnwindSafe for JoinHandle<R> where
R: UnwindSafe,
impl<R> UnwindSafe for JoinHandle<R> where
R: UnwindSafe,
Blanket Implementations
impl<F> FutureExt for F where
F: Future + ?Sized,
[src]
impl<F> FutureExt for F where
F: Future + ?Sized,
[src]pub fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
[src]
Self: Unpin,
pub fn or<F>(self, other: F) -> Or<Self, F> where
F: Future<Output = Self::Output>,
[src]
F: Future<Output = Self::Output>,
pub fn race<F>(self, other: F) -> Race<Self, F> where
F: Future<Output = Self::Output>,
[src]
F: Future<Output = Self::Output>,
pub fn catch_unwind(self) -> CatchUnwind<Self> where
Self: UnwindSafe,
[src]
Self: UnwindSafe,
pub fn boxed<'a>(
self
) -> Pin<Box<dyn Future<Output = Self::Output> + 'a + Send, Global>> where
Self: Send + 'a,
[src]
self
) -> Pin<Box<dyn Future<Output = Self::Output> + 'a + Send, Global>> where
Self: Send + 'a,
pub fn boxed_local<'a>(
self
) -> Pin<Box<dyn Future<Output = Self::Output> + 'a, Global>> where
Self: 'a,
[src]
self
) -> Pin<Box<dyn Future<Output = Self::Output> + 'a, Global>> where
Self: 'a,
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
[src]type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?