Crate async_fn_traits

Source
Expand description

crates.io github MIT / Apache 2.0 licensed unsafe forbidden

Trait synonyms for Fn[…]-trait bounds of functions returning futures.

E.g. a 2-argument function async fn foo(x: Bar, y: Baz) -> Qux will implement AsyncFn2<Bar, Baz, Output = Qux>.

TODO: This crate-level documentation is missing some code examples.

Traits§

AsyncFn0
A synonym for future-returning Fn-bounds with 0 arguments
AsyncFn1
A synonym for future-returning Fn-bounds with 1 arguments
AsyncFn2
A synonym for future-returning Fn-bounds with 2 arguments
AsyncFn3
A synonym for future-returning Fn-bounds with 3 arguments
AsyncFn4
A synonym for future-returning Fn-bounds with 4 arguments
AsyncFn5
A synonym for future-returning Fn-bounds with 5 arguments
AsyncFn6
A synonym for future-returning Fn-bounds with 6 arguments
AsyncFn7
A synonym for future-returning Fn-bounds with 7 arguments
AsyncFn8
A synonym for future-returning Fn-bounds with 8 arguments
AsyncFn9
A synonym for future-returning Fn-bounds with 9 arguments
AsyncFn10
A synonym for future-returning Fn-bounds with 10 arguments
AsyncFn11
A synonym for future-returning Fn-bounds with 11 arguments
AsyncFn12
A synonym for future-returning Fn-bounds with 12 arguments
AsyncFn13
A synonym for future-returning Fn-bounds with 13 arguments
AsyncFn14
A synonym for future-returning Fn-bounds with 14 arguments
AsyncFn15
A synonym for future-returning Fn-bounds with 15 arguments
AsyncFnMut0
A synonym for future-returning FnMut-bounds with 0 arguments
AsyncFnMut1
A synonym for future-returning FnMut-bounds with 1 arguments
AsyncFnMut2
A synonym for future-returning FnMut-bounds with 2 arguments
AsyncFnMut3
A synonym for future-returning FnMut-bounds with 3 arguments
AsyncFnMut4
A synonym for future-returning FnMut-bounds with 4 arguments
AsyncFnMut5
A synonym for future-returning FnMut-bounds with 5 arguments
AsyncFnMut6
A synonym for future-returning FnMut-bounds with 6 arguments
AsyncFnMut7
A synonym for future-returning FnMut-bounds with 7 arguments
AsyncFnMut8
A synonym for future-returning FnMut-bounds with 8 arguments
AsyncFnMut9
A synonym for future-returning FnMut-bounds with 9 arguments
AsyncFnMut10
A synonym for future-returning FnMut-bounds with 10 arguments
AsyncFnMut11
A synonym for future-returning FnMut-bounds with 11 arguments
AsyncFnMut12
A synonym for future-returning FnMut-bounds with 12 arguments
AsyncFnMut13
A synonym for future-returning FnMut-bounds with 13 arguments
AsyncFnMut14
A synonym for future-returning FnMut-bounds with 14 arguments
AsyncFnMut15
A synonym for future-returning FnMut-bounds with 15 arguments
AsyncFnOnce0
A synonym for future-returning FnOnce-bounds with 0 arguments
AsyncFnOnce1
A synonym for future-returning FnOnce-bounds with 1 arguments
AsyncFnOnce2
A synonym for future-returning FnOnce-bounds with 2 arguments
AsyncFnOnce3
A synonym for future-returning FnOnce-bounds with 3 arguments
AsyncFnOnce4
A synonym for future-returning FnOnce-bounds with 4 arguments
AsyncFnOnce5
A synonym for future-returning FnOnce-bounds with 5 arguments
AsyncFnOnce6
A synonym for future-returning FnOnce-bounds with 6 arguments
AsyncFnOnce7
A synonym for future-returning FnOnce-bounds with 7 arguments
AsyncFnOnce8
A synonym for future-returning FnOnce-bounds with 8 arguments
AsyncFnOnce9
A synonym for future-returning FnOnce-bounds with 9 arguments
AsyncFnOnce10
A synonym for future-returning FnOnce-bounds with 10 arguments
AsyncFnOnce11
A synonym for future-returning FnOnce-bounds with 11 arguments
AsyncFnOnce12
A synonym for future-returning FnOnce-bounds with 12 arguments
AsyncFnOnce13
A synonym for future-returning FnOnce-bounds with 13 arguments
AsyncFnOnce14
A synonym for future-returning FnOnce-bounds with 14 arguments
AsyncFnOnce15
A synonym for future-returning FnOnce-bounds with 15 arguments