[−][src]Module futures_util::future
Futures
This module contains a number of functions for working with Future
s,
including the FutureExt
trait which adds methods to Future
types.
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 |
CatchUnwind | Future for the |
Flatten | Future for the |
FlattenStream | Stream for the |
Fuse | Future for the |
Inspect | 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 |
Map | Future for the |
NeverError | Future for the |
OptionFuture | A future representing a value which may or may not be present. |
Pending | 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
|
Select | Future for the |
SelectAll | Future for the |
Shared | Future for the |
Then | Future for the |
UnitError | Future for the |
Enums
Either | Combines two different futures, streams, or sinks having the same associated types into a single type. |
MaybeDone | A future that may have completed. |
Traits
FutureExt | An extension trait for |
Functions
abortable | Creates a new |
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. |
pending | Creates a future which never resolves, representing a computation that never finishes. |
poll_fn | Creates a new future wrapping around a function returning |
ready | Create a future that is immediately ready with a value. |
select | Waits for either one of two differently-typed futures to complete. |
select_all | Creates a new future which will select over a list of futures. |