[−][src]Module futures::future
Asynchronous values.
This module contains:
- The
Future
trait. - The
FutureExt
trait, which provides adapters for chaining and composing futures. - Top-level future combinators like
lazy
which creates a future from a closure that defines its return value, andready
, which constructs a future with an immediate defined value.
Structs
AbortHandle | A handle to a |
AbortRegistration | A registration handle for a |
Abortable | A future which can be remotely short-circuited using an |
Aborted | Indicator that the |
AndThen | Future for the |
CatchUnwind | Future for the |
Empty | Future for the |
ErrInto | Future for the |
Flatten | Future for the |
FlattenSink | Future for the |
FlattenStream | Stream for the |
Fuse | Future for the |
FutureObj | A custom trait object for polling futures, roughly akin to
|
Inspect | Future for the |
IntoFuture | Future for the |
IntoStream | Stream for the |
Join | Future for the |
Join3 | Future for the |
Join4 | Future for the |
Join5 | Future for the |
JoinAll | Future for the |
Lazy | Future for the |
LocalFutureObj | A custom trait object for polling futures, roughly akin to
|
Map | Future for the |
MapErr | Future for the |
MapOk | Future for the |
OptionFuture | A future representing a value which may or may not be present. |
OrElse | Future for the |
PollFn | Future for the |
Ready | Future for the |
Remote | A future which sends its output to the corresponding |
RemoteHandle | The handle to a remote future returned by
|
Shared | Future for the |
Then | Future for the |
TryJoin | Future for the |
TryJoin3 | Future for the |
TryJoin4 | Future for the |
TryJoin5 | Future for the |
TryJoinAll | Future for the |
UnwrapOrElse | Future for the |
Enums
MaybeDone | A future that may have completed. |
Traits
FusedFuture | A |
Future | Experimental A future represents an asynchronous computation. |
FutureExt | An extension trait for |
TryFuture | A convenience for futures that return |
TryFutureExt | Adapters specific to |
UnsafeFutureObj | A custom implementation of a future trait object for |
Functions
abortable | Creates a new |
empty | Creates a future which never resolves, representing a computation that never finishes. |
err | Create a future that is immediately ready with an error value. |
join | Joins the result of two futures, waiting for them both to complete. |
join3 | Same as |
join4 | Same as |
join5 | Same as |
join_all | Creates a future which represents a collection of the outputs of the futures given. |
lazy | Creates a new future that allows delayed execution of a closure. |
maybe_done | Wraps a future into a |
ok | Create a future that is immediately ready with a success value. |
poll_fn | Creates a new future wrapping around a function returning [ |
ready | Create a future that is immediately ready with a value. |
try_join | Joins the result of two futures, waiting for them both to complete or for one to produce an error. |
try_join3 | Same as |
try_join4 | Same as |
try_join5 | Same as |
try_join_all | Creates a future which represents either a collection of the results of the futures given or an error. |