Expand description
A “prelude” for crates using the futures
crate.
This prelude is similar to the standard library’s prelude in that you’ll almost always want to import its entire contents, but unlike the standard library’s prelude you’ll have to do so manually:
use futures::prelude::*;
The prelude may grow over time as additional items see ubiquitous use.
Modules§
- Task notification.
Enums§
- Indicates whether a value is available, or if the current task has been scheduled for later wake-up instead.
- A type with no possible values.
Traits§
- Read bytes asynchronously.
- An extension trait which adds utility methods to
AsyncRead
types. - Write bytes asynchronously.
- An extension trait which adds utility methods to
AsyncWrite
types. - A task executor.
- A future represents an asychronous computation that may fail.
- An extension trait for
Future
s that provides a variety of convenient combinator functions. - Types that can be converted into a future.
- A
Sink
is a value into which other values can be sent, asynchronously. - An extension trait for
Sink
s that provides a variety of convenient combinator functions. - A stream of values produced asynchronously.
- An extension trait for
Stream
s that provides a variety of convenient combinator functions.
Type Aliases§
- A convenience wrapper for
Result<Async<T>, E>
.