#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

#1400 in Rust patterns

Download history 3789/week @ 2024-10-30 3982/week @ 2024-11-06 3644/week @ 2024-11-13 4605/week @ 2024-11-20 4523/week @ 2024-11-27 4062/week @ 2024-12-04 3399/week @ 2024-12-11 2589/week @ 2024-12-18 1430/week @ 2024-12-25 3870/week @ 2025-01-01 4434/week @ 2025-01-08 4290/week @ 2025-01-15 5626/week @ 2025-01-22 6153/week @ 2025-01-29 6144/week @ 2025-02-05 4435/week @ 2025-02-12

23,144 downloads per month
Used in 10 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