Docs.rs
  • async-macros-2.0.0
    • async-macros 2.0.0
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • yoshuawuyts
    • Dependencies
      • futures-core ^0.3.0 normal
      • pin-utils ^0.1.0-alpha.4 normal
      • futures ^0.3.0 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • 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

Crate async_macros

async_macros2.0.0

  • All Items

Sections

  • Examples

Crate Items

  • Modules
  • Macros
  • Structs
  • Enums

Crates

  • async_macros

Crate async_macros

Source
Expand description

Macros for async-std.

§Examples

use async_macros::join;
use futures::future;

let a = future::ready(1u8);
let b = future::ready(2u8);

assert_eq!(join!(a, b).await, (1, 2));

Modules§

utils
Helper re-exports for use in macros.

Macros§

join
Awaits multiple futures simultaneously, returning all results once complete.
join_stream
Combines multiple streams into a single stream of all their outputs.
ready
Extracts the successful type of a Poll<T>.
select
Waits for either one of several similarly-typed futures to complete.
try_join
Awaits multiple fallible futures simultaneously, returning all results once complete.
try_select
Waits for either one of several similarly-typed futures to complete.

Structs§

JoinStream
A stream joining two or more streams.

Enums§

MaybeDone
A future that may have completed.

Results

Settings
Help
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.
    method
    async_macros::utils::task::Context::fmt
    &Context, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::Waker::fmt
    &Waker, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::LocalWaker::fmt
    &LocalWaker, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::RawWaker::fmt
    &RawWaker, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::RawWakerVTable::fmt
    &RawWakerVTable, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::ContextBuilder::fmt
    &ContextBuilder, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::future::Pending::fmt
    &Pending<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::future::PollFn::fmt
    &PollFn<F>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::future::Ready::fmt
    &Ready<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::pin::UnsafePinned::fmt
    &UnsafePinned<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::pin::Pin::fmt
    &Pin<Ptr>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::result::Iter::fmt
    &Iter<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::result::IterMut::fmt
    &IterMut<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::result::IntoIter::fmt
    &IntoIter<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::task::Poll::fmt
    &Poll<T>, &mut Formatter -> Result<(), Error>
    method
    async_macros::utils::result::Result::fmt
    &Result<T, E>, &mut Formatter -> Result<(), Error>