Crate futures_util

Source
Expand description

Combinators and utilities for working with Futures, Streams, Sinks, and the AsyncRead and AsyncWrite traits.

Re-exports§

pub use crate::future::Future;
pub use crate::future::FutureExt;
pub use crate::future::TryFuture;
pub use crate::future::TryFutureExt;
pub use crate::stream::Stream;
pub use crate::stream::StreamExt;
pub use crate::stream::TryStream;
pub use crate::stream::TryStreamExt;
pub use crate::sink::Sink;
pub use crate::sink::SinkExt;
pub use crate::io::AsyncBufRead;
pub use crate::io::AsyncBufReadExt;
pub use crate::io::AsyncRead;
pub use crate::io::AsyncReadExt;
pub use crate::io::AsyncSeek;
pub use crate::io::AsyncSeekExt;
pub use crate::io::AsyncWrite;
pub use crate::io::AsyncWriteExt;

Modules§

future
Asynchronous values.
io
Asynchronous I/O.
lock
Futures-powered synchronization primitives.
never
This module contains the Never type.
sink
Asynchronous sinks.
stream
Asynchronous streams.
task
Tools for working with tasks.

Macros§

pin_mut
Pins a value on the stack.
ready
Extracts the successful type of a Poll<T>.