Docs.rs
  • async-macros-1.0.0
    • async-macros 1.0.0
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • yoshuawuyts
    • Dependencies
      • futures-core-preview ^0.3.0-alpha.18 normal
      • pin-utils ^0.1.0-alpha.4 normal
      • futures-preview ^0.3.0-alpha.18 dev
    • Versions
  • Go to latest version
  • Platform
    • i686-apple-darwin
    • 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
☰
logo

Crate async_macros

See all async_macros's items

  • Modules
  • Macros
  • Structs
  • Enums

Crates

  • async_macros
Change settings

[−][src]Crate async_macros

[−] 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 for Option

In Names
(0)
In Parameters
(0)
In Return Types
(23)
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.
async_macros::utils::result::Result::okConverts from `Result<T, E>` to [`Option<T>`]. 
async_macros::utils::result::Result::errConverts from `Result<T, E>` to [`Option<E>`]. 
async_macros::utils::result::IntoIter::next 
async_macros::utils::result::IterMut::next 
async_macros::utils::result::Iter::next 
async_macros::MaybeDone::takeAttempt to take the output of a `MaybeDone` without… 
async_macros::MaybeDone::outputReturns an [`Option`] containing a reference to the output… 
async_macros::utils::result::Iter::next_back 
async_macros::utils::result::IntoIter::next_back 
async_macros::utils::result::IterMut::next_back 
async_macros::JoinStream::poll_next 
async_macros::utils::pin::Pin::poll_next 
async_macros::MaybeDone::output_mutReturns an [`Option`] containing a mutable reference to… 
async_macros::utils::task::Poll::map_okChanges the success value of this `Poll` with the closure… 
async_macros::utils::task::Poll::from_ok 
async_macros::utils::task::Poll::map_errChanges the error value of this `Poll` with the closure… 
async_macros::utils::task::Poll::from_error 
async_macros::JoinStream::try_poll_next 
async_macros::utils::pin::Pin::try_poll_next 
async_macros::utils::result::Result::transposeTransposes a `Result` of an `Option` into an `Option` of a… 
async_macros::utils::pin::Pin::partial_cmp 
async_macros::utils::result::Result::partial_cmp 
async_macros::utils::task::Poll::partial_cmp 

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)