Struct glommio::task::JoinHandle [−][src]
pub struct JoinHandle<R> { /* fields omitted */ }
Expand description
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
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for JoinHandle<R> where
R: RefUnwindSafe,
impl<R> !Send for JoinHandle<R>
impl<R> !Sync for JoinHandle<R>
impl<R> UnwindSafe for JoinHandle<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
A convenience for calling Future::poll()
on !
Unpin
types.
Returns the result of self
or other
future, preferring self
if both are ready. Read more
Returns the result of self
or other
future, with no preference if both are ready. Read more
Catches panics while polling the future. Read more
Boxes the future and changes its type to dyn Future + Send + 'a
. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
into_future
)Which kind of future are we turning this into?
into_future
)Creates a future from a value.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more