Docs.rs
  • async-std-0.99.6
    • async-std 0.99.6
    • Docs.rs crate page
    • Apache-2.0/MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • skade
    • yoshuawuyts
    • Keruspe
    • joshtriplett
    • dignifiedquire
    • Dependencies
      • async-macros ^1.0.0 normal
      • async-task ^1.0.0 normal
      • cfg-if ^0.1.9 normal
      • crossbeam-channel ^0.3.9 normal
      • crossbeam-deque ^0.7.1 normal
      • futures-core-preview ^0.3.0-alpha.18 normal
      • futures-io-preview ^0.3.0-alpha.18 normal
      • futures-timer ^0.4.0 normal
      • kv-log-macro ^1.0.4 normal
      • lazy_static ^1.4.0 normal
      • log ^0.4.8 normal
      • memchr ^2.2.1 normal
      • mio ^0.6.19 normal
      • mio-uds ^0.6.7 normal
      • num_cpus ^1.10.1 normal
      • pin-utils ^0.1.0-alpha.4 normal
      • slab ^0.4.2 normal
      • femme ^1.2.0 dev
      • futures-channel-preview ^0.3.0-alpha.18 dev
      • futures-preview ^0.3.0-alpha.18 dev
      • futures-util-preview ^0.3.0-alpha.18 dev
      • surf ^1.0.2 dev
      • tempdir ^0.3.7 dev
    • Versions
  • Go to latest version
  • Platform
    • i686-apple-darwin
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate async_std

See all async_std's items

  • Modules
  • Macros

Crates

  • async_std
Change settings

[−][src]Crate async_std

[−] Expand description

Async version of the Rust standard library.

Modules in this crate are organized in the same way as in the standard library, except blocking functions have been replaced with async functions and threads have been replaced with lightweight tasks.

More information, reading materials, and other resources:

  • 🌐 The async-std website
  • 📖 The async-std book
  • 🐙 GitHub repository
  • 📒 List of code examples
  • 💬 Discord chat

Examples

Spawn a task and block the current thread on its result:

use async_std::task;

fn main() {
    task::block_on(async {
        println!("Hello, world!");
    })
}

Features

Unstable APIs in this crate are available when the unstable Cargo feature is enabled:

[dependencies.async-std]
version = "0.99"
features = ["unstable"]

Modules

fs

Filesystem manipulation operations.

future

Asynchronous values.

io

Basic input and output.

net

Networking primitives for TCP/UDP communication.

os

OS-specific extensions.

pin

Types that pin data to its location in memory.

prelude

The async prelude.

stream

Asynchronous iteration.

sync

Synchronization primitives.

task

Asynchronous tasks.

Macros

task_local

Declares task-local values.

Results for DoubleEndedStream

In Names
(1)
In Parameters
(0)
In Return Types
(0)
async_std::stream::DoubleEndedStreamA stream able to yield elements from both ends. 
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.

Help

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
↑
Move up in search results
↓
Move down in search results
↹
Switch tab
⏎
Go to active search result
+
Expand all sections
-
Collapse all sections

Search Tricks

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given type.

Accepted types are: fn, mod, struct, enum, trait, type, macro, and const.

Search functions by type signature (e.g., vec -> usize or * -> vec)

Search multiple things at once by splitting your query with comma (e.g., str,u8 or String,struct:Vec,test)