logo
Expand description

The async prelude.

The prelude re-exports most commonly used traits and macros from this crate.

Examples

Import the prelude with:

use async_std::prelude::*;

Re-exports

pub use std::future::Future;
pub use crate::stream::Stream;
pub use crate::io::BufRead as _;
pub use crate::io::Read as _;
pub use crate::io::Seek as _;
pub use crate::io::Write as _;
pub use crate::io::prelude::BufReadExt as _;
pub use crate::io::prelude::ReadExt as _;
pub use crate::io::prelude::SeekExt as _;
pub use crate::io::prelude::WriteExt as _;
pub use crate::task_local;
pub use crate::stream::DoubleEndedStream;
unstable
pub use crate::stream::ExactSizeStream;
unstable

Traits

Extension methods for Future.

Extension methods for Stream.