Module futures::prelude

source ·
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 crate::future::FutureExt as _;
pub use crate::future::TryFutureExt as _;
pub use crate::sink::SinkExt as _;
pub use crate::stream::StreamExt as _;
pub use crate::stream::TryStreamExt as _;
pub use crate::io::AsyncBufReadExt as _;
pub use crate::io::AsyncReadExt as _;
pub use crate::io::AsyncSeekExt as _;
pub use crate::io::AsyncWriteExt as _;

Modules

Asynchronous values.
Asynchronous sinks.
Asynchronous streams.

Traits

Read bytes asynchronously.
Read bytes asynchronously.
Seek bytes asynchronously.
Write bytes asynchronously.
A future represents an asynchronous computation obtained by use of async.
A Sink is a value into which other values can be sent, asynchronously.
A stream of values produced asynchronously.
A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.
A convenience for streams that return Result values that includes a variety of adapters tailored to such futures.