[][src]Module futures_util::compat

Futures 0.1 / 0.3 shims

This module is only available when the compat feature of this library is activated.

Structs

Compat

Converts a futures 0.3 TryFuture, TryStream or Sink into a futures 0.1 Future, Stream or Sink.

Compat01As03

Converts a futures 0.1 Future, Stream, AsyncRead, or AsyncWrite object to a futures 0.3-compatible version,

Compat01As03Sink

Converts a futures 0.1 Sink object to a futures 0.3-compatible version

CompatSink

Converts a futures 0.3 Sink object to a futures 0.1-compatible version

Executor01As03

Converts a futures 0.1 Executor into a futures 0.3 Spawn.

Traits

AsyncRead01CompatExt

Extension trait for tokio-io AsyncRead

AsyncWrite01CompatExt

Extension trait for tokio-io AsyncWrite

Executor01CompatExt

Extension trait for futures 0.1 Executor.

Future01CompatExt

Extension trait for futures 0.1 Future

Sink01CompatExt

Extension trait for futures 0.1 Sink

Stream01CompatExt

Extension trait for futures 0.1 Stream

Type Definitions

Executor01Future

A future that can run on a futures 0.1 Executor.