Module prelude
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§
Traits§
- Async
BufRead - Read bytes asynchronously.
- Async
Read - Read bytes asynchronously.
- Async
Seek - Seek bytes asynchronously.
- Async
Write - Write bytes asynchronously.
- Future
- A future represents an asynchronous computation, commonly obtained by use of
async. - Sink
- A
Sinkis a value into which other values can be sent, asynchronously. - Stream
- A stream of values produced asynchronously.
- TryFuture
- A convenience for futures that return
Resultvalues that includes a variety of adapters tailored to such futures. - TryStream
- A convenience for streams that return
Resultvalues that includes a variety of adapters tailored to such futures. - _
- An extension trait for
Futures that provides a variety of convenient adapters. - _
- Adapters specific to
Result-returning futures - _
- An extension trait for
Sinks that provides a variety of convenient combinator functions. - _
- An extension trait for
Streams that provides a variety of convenient combinator functions. - _
- Adapters specific to
Result-returning streams - _
- An extension trait which adds utility methods to
AsyncBufReadtypes. - _
- An extension trait which adds utility methods to
AsyncReadtypes. - _
- An extension trait which adds utility methods to
AsyncSeektypes. - _
- An extension trait which adds utility methods to
AsyncWritetypes.