Crate futures [−] [src]
A work-in-progress futures library for Rust.
This library is an experimental implementation of Futures in Rust, and is very likely to change over time and break compatibility without notice. Be warned!
The documentation of this library is also very much a work in progress, but if anything is unclear please open an issue and hopefully it'll be documented quickly!
Modules
executor |
Work in progress implementation of executors for Futures. |
stream |
Asynchronous streams |
Macros
try_poll! |
Structs
AndThen |
Future for the |
Canceled |
Error returned from a |
Collect |
A future which takes a list of futures and resolves with a vector of the completed values. |
Complete |
Represents the completion half of a promise through which the result of a computation is signaled. |
Done |
A future representing a value that is immediately ready. |
Empty |
A future which is never resolved. |
Failed |
A future representing a finished but erroneous computation. |
Finished |
A future representing a finished successful computation. |
Flatten |
Future for the |
Fuse |
A future which "fuse"s a future once it's been resolved. |
Join |
Future for the |
Lazy |
A future which defers creation of the actual future until a callback is scheduled. |
Map |
Future for the |
MapErr |
Future for the |
OrElse |
Future for the |
Promise |
A future representing the completion of a computation happening elsewhere in memory. |
Select |
Future for the |
SelectNext |
Future yielded as the second result in a |
Store |
A combinator which will store some data into task-local storage. |
StoreNotify |
A combinator which will store some data into task-local storage. |
Task |
A structure representing one "task", or thread of execution throughout the lifetime of a set of futures. |
TaskData |
A reference to a piece of data that's stored inside of a |
TaskHandle |
A handle to a task that can be sent to other threads. |
TaskNotifyData |
dox |
Then |
Future for the |
Enums
Poll |
Possible return values from the |
Traits
Future |
Trait for types which represent a placeholder of a value that will become available at possible some later point in time. |
IntoFuture |
Class of types which can be converted themselves into a future. |
Functions
collect |
Creates a future which represents a collection of the results of the futures given. |
done |
Creates a new "leaf future" which will resolve with the given result. |
empty |
Creates a future which never resolves, representing a computation that never finishes. |
failed |
Creates a "leaf future" from an immediate value of a failed computation. |
finished |
Creates a "leaf future" from an immediate value of a finished and successful computation. |
lazy |
Creates a new future which will eventually be the same as the one created by the closure provided. |
promise |
Creates a new in-memory promise used to represent completing a computation. |
store |
A combinator to store some data into task-local storage. |
store_notify |
A combinator to store some data into task-local storage. |