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

#1174 in Rust patterns

Download history 684/week @ 2024-09-02 661/week @ 2024-09-09 579/week @ 2024-09-16 690/week @ 2024-09-23 1298/week @ 2024-09-30 1588/week @ 2024-10-07 3488/week @ 2024-10-14 3333/week @ 2024-10-21 3581/week @ 2024-10-28 3979/week @ 2024-11-04 3963/week @ 2024-11-11 4176/week @ 2024-11-18 4849/week @ 2024-11-25 3689/week @ 2024-12-02 3826/week @ 2024-12-09 3430/week @ 2024-12-16

15,875 downloads per month
Used in 12 crates (9 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