Module async_std::prelude[][src]

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

Traits

FutureExt

Extension methods for Future.

StreamExt

Extension methods for Stream.