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.
Re-exports§
pub use futures::prelude::FutureExt as _;pub use futures::prelude::TryFutureExt as _;pub use futures::prelude::SinkExt as _;pub use futures::prelude::StreamExt as _;pub use futures::prelude::TryStreamExt as _;pub use futures::prelude::AsyncBufReadExt as _;pub use futures::prelude::AsyncReadExt as _;pub use futures::prelude::AsyncSeekExt as _;pub use futures::prelude::AsyncWriteExt as _;
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.