#async #future #traits

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

#1311 in Rust patterns

Download history 3351/week @ 2024-12-14 1266/week @ 2024-12-21 2479/week @ 2024-12-28 4772/week @ 2025-01-04 4563/week @ 2025-01-11 4979/week @ 2025-01-18 5592/week @ 2025-01-25 6493/week @ 2025-02-01 5881/week @ 2025-02-08 5441/week @ 2025-02-15 5509/week @ 2025-02-22 7134/week @ 2025-03-01 8608/week @ 2025-03-08 7453/week @ 2025-03-15 6456/week @ 2025-03-22 7457/week @ 2025-03-29

31,344 downloads per month
Used in 11 crates (10 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