#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

#1186 in Rust patterns

Download history 633/week @ 2024-08-07 573/week @ 2024-08-14 602/week @ 2024-08-21 595/week @ 2024-08-28 754/week @ 2024-09-04 623/week @ 2024-09-11 587/week @ 2024-09-18 905/week @ 2024-09-25 1199/week @ 2024-10-02 2478/week @ 2024-10-09 3250/week @ 2024-10-16 3697/week @ 2024-10-23 3789/week @ 2024-10-30 3982/week @ 2024-11-06 3644/week @ 2024-11-13 4589/week @ 2024-11-20

16,752 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