#async #traits #future #bounds #returning #fn #synonyms

no-std async_fn_traits

Trait synonyms for “Fn[…]”-trait bounds returning futures

2 releases

0.1.1 Dec 7, 2021
0.1.0 Dec 7, 2021

#1491 in Rust patterns

Download history 257/week @ 2023-11-24 243/week @ 2023-12-01 224/week @ 2023-12-08 252/week @ 2023-12-15 101/week @ 2023-12-22 171/week @ 2023-12-29 252/week @ 2024-01-05 255/week @ 2024-01-12 361/week @ 2024-01-19 182/week @ 2024-01-26 430/week @ 2024-02-02 434/week @ 2024-02-09 455/week @ 2024-02-16 623/week @ 2024-02-23 428/week @ 2024-03-01 278/week @ 2024-03-08

1,867 downloads per month
Used in 5 crates

MIT/Apache

9KB
141 lines

async_fn_traits

docs.rs crates.io github MIT / Apache 2.0 licensed unsafe forbidden

Trait synonyms for Fn[]-trait bounds returning futures.

E.g. a 2-argument function async fn foo(x: Bar, y: Baz) -> Qux will implement AsyncFn2<Bar, Baz, Output = Qux>.

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies