Module future

Source
Expand description

Futures.

Structs§

FutureOption
A future representing a value which may or may not be present.
FutureResult
A future representing a value that is immediately ready.

Traits§

Future
A future represents an asychronous computation that may fail.
IntoFuture
Types that can be converted into a future.

Functions§

err
Creates a new future that will immediately fail with the given error.
ok
Creates a new future that will immediately resolve successfully to the given value.
result
Creates a new future that will immediate resolve with the given result.