#future #async-trait #async #traits #bounds #returning #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

#1115 in Rust patterns

Download history 342/week @ 2024-06-14 508/week @ 2024-06-21 433/week @ 2024-06-28 474/week @ 2024-07-05 498/week @ 2024-07-12 727/week @ 2024-07-19 655/week @ 2024-07-26 614/week @ 2024-08-02 624/week @ 2024-08-09 604/week @ 2024-08-16 587/week @ 2024-08-23 631/week @ 2024-08-30 758/week @ 2024-09-06 517/week @ 2024-09-13 701/week @ 2024-09-20 882/week @ 2024-09-27

2,963 downloads per month
Used in 11 crates (8 directly)

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