#async

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

#1065 in #async

Download history 25/week @ 2022-06-12 21/week @ 2022-06-19 59/week @ 2022-06-26 109/week @ 2022-07-03 81/week @ 2022-07-10 92/week @ 2022-07-17 37/week @ 2022-07-24 37/week @ 2022-07-31 42/week @ 2022-08-07 62/week @ 2022-08-14 67/week @ 2022-08-21 63/week @ 2022-08-28 111/week @ 2022-09-04 107/week @ 2022-09-11 42/week @ 2022-09-18 39/week @ 2022-09-25

310 downloads per month
Used in envoy_http

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