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
- Task notification.
Enums§
- Async
- Indicates whether a value is available, or if the current task has been scheduled for later wake-up instead.
- Never
- A type with no possible values.
Traits§
- Async
Read - Read bytes asynchronously.
- Async
Read Ext - An extension trait which adds utility methods to
AsyncRead
types. - Async
Write - Write bytes asynchronously.
- Async
Write Ext - An extension trait which adds utility methods to
AsyncWrite
types. - Executor
- A task executor.
- Future
- A future represents an asychronous computation that may fail.
- Future
Ext - An extension trait for
Future
s that provides a variety of convenient combinator functions. - Into
Future - Types that can be converted into a future.
- Sink
- A
Sink
is a value into which other values can be sent, asynchronously. - SinkExt
- An extension trait for
Sink
s that provides a variety of convenient combinator functions. - Stream
- A stream of values produced asynchronously.
- Stream
Ext - An extension trait for
Stream
s that provides a variety of convenient combinator functions.
Type Aliases§
- Poll
- A convenience wrapper for
Result<Async<T>, E>
.