Trait async_fn_traits::AsyncFn2[][src]

pub trait AsyncFn2<Arg0, Arg1>: Fn(Arg0, Arg1) -> Self::OutputFuture {
    type OutputFuture: Future<Output = <Self as AsyncFn2<Arg0, Arg1>>::Output>;
    type Output;
}
Expand description

A synonym for future-returning Fn-bounds with 2 arguments

The bound

F: AsyncFn2<Arg0, Arg1, Output = R>,

is equivalent to something like

F: Fn(Arg0, Arg1) -> Fut,
Fut: Future<Output = R>,

Associated Types

Implementors