Module futures::future [−][src]
Asynchronous values.
This module contains:
- The
Futuretrait. - The
FutureExttrait, which provides adapters for chaining and composing futures. - Top-level future combinators like
lazywhich 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 |
A future which is never resolved. |
| ErrInto |
Future for the |
| Flatten |
Future for the |
| FlattenSink |
Future for the |
| FlattenStream |
Future for the |
| Fuse |
A future which "fuses" a future once it's been resolved. |
| FutureObj |
[ Experimental ] A custom trait object for polling futures, roughly akin to
|
| Inspect |
Do something with the item of a future, passing it on. |
| IntoFuture |
Converts a |
| IntoStream |
A type which converts a |
| Join |
Future for the |
| Join3 |
Future for the |
| Join4 |
Future for the |
| Join5 |
Future for the |
| Lazy |
A future which, when polled, invokes a closure and yields its result. |
| LocalFutureObj |
[ Experimental ] 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 |
A future which adapts a function returning |
| Ready |
A future that is immediately ready with a value |
| Shared |
A future that is cloneable and can be polled in multiple threads.
Use |
| Then |
Future for the |
| UnwrapOrElse |
Future for the |
| WithExecutor |
Future for the |
Enums
| MaybeDone |
|
Traits
| Future |
[ Experimental ] A future represents an asychronous computation. |
| FutureExt |
An extension trait for |
| TryFuture |
A convenience for futures that return |
| TryFutureExt |
Adapters specific to |
| UnsafeFutureObj |
[ Experimental ] 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. |
| lazy |
Creates a new future from a closure. |
| maybe_done |
Creates a new future from a closure. |
| poll_fn |
Creates a new future wrapping around a function returning |
| ready |
Create a future that is immediately ready with a value. |