[][src]Module futures::prelude

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;
pub use crate::stream;
pub use crate::task;
pub use crate::sink;

Enums

Poll [
Experimental
]

Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.

Traits

AsyncRead

Read bytes asynchronously.

AsyncReadExt

An extension trait which adds utility methods to AsyncRead types.

AsyncWrite

Write bytes asynchronously.

AsyncWriteExt

An extension trait which adds utility methods to AsyncWrite types.

Future [
Experimental
]

A future represents an asychronous computation.

FutureExt

An extension trait for Futures that provides a variety of convenient adapters.

Sink

A Sink is a value into which other values can be sent, asynchronously.

SinkExt

An extension trait for Sinks that provides a variety of convenient combinator functions.

SpawnExt

Extension trait for Spawn

Stream

A stream of values produced asynchronously.

StreamExt

An extension trait for Streams that provides a variety of convenient combinator functions.

TryFuture

A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

TryFutureExt

Adapters specific to Result-returning futures

TryStream

A convenience for streams that return Result values that includes a variety of adapters tailored to such futures.

TryStreamExt

Adapters specific to Result-returning streams