[−][src]Module futures_util::future
Futures
This module contains a number of functions for working with Futures,
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 |
| Empty | A future which is never resolved. |
| Flatten | Future for the |
| FlattenStream | Future for the |
| Fuse | A future which "fuses" a future once it has been resolved.
This wrapper can be used to turn any |
| Inspect | Do something with the item of a future, passing it on. |
| IntoStream | A type which converts a |
| Join | Future for the |
| Join3 | Future for the |
| Join4 | Future for the |
| Join5 | Future for the |
| JoinAll | A future which takes a list of futures and resolves with a vector of the completed values. |
| Lazy | A future which, when polled, invokes a closure and yields its result. |
| Map | Future for the |
| OptionFuture | A future representing a value which may or may not be present. |
| PollFn | A future which wraps a function returning |
| Ready | A future that is immediately ready with a value |
| Remote | A future which sends its output to the corresponding |
| RemoteHandle | The handle to a remote future returned by
|
| Shared | A future that is cloneable and can be polled in multiple threads.
Use the |
| Then | Future for the |
| UnitError | Future for the |
Enums
| MaybeDone | A future that may have completed. |
Traits
| FutureExt | An extension trait 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_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. |