Docs.rs
  • async-std-0.99.5
    • async-std 0.99.5
    • Docs.rs crate page
    • Apache-2.0/MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • skade
    • yoshuawuyts
    • Keruspe
    • joshtriplett
    • dignifiedquire
    • Dependencies
      • async-task ^1.0.0 normal
      • cfg-if ^0.1.9 normal
      • crossbeam-channel ^0.3.9 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
      • 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.

This crate is an async version of std.

Higher-level documentation in the form of the book "Async programming in Rust with async-std" is available.

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!");
    })
}

See here for more examples.

Modules

fs

Filesystem manipulation operations.

future

Asynchronous values.

io

Basic input and output.

net

Networking primitives for TCP/UDP communication.

os

OS-specific extensions.

prelude

The async prelude.

stream

Asynchronous iteration.

sync

Synchronization primitives.

task

Asynchronous tasks.

Macros

task_local

Declares task-local values.

Results for ErrorKind

In Names
(1)
In Parameters
(5)
In Return Types
(2)
async_std::io::ErrorKindA list specifying general categories of I/O error. 
async_std::io::ErrorKind::eq 
async_std::io::ErrorKind::cmp 
async_std::io::Error::newCreates a new I/O error from a known kind of error as well… 
async_std::io::Error::fromConverts an [`ErrorKind`] into an [`Error`]. 
async_std::io::ErrorKind::partial_cmp 
async_std::io::Error::kindReturns the corresponding `ErrorKind` for this error. 
async_std::io::ErrorKind::clone 

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)