Type Alias BoxedAsyncFn2

Source
pub type BoxedAsyncFn2<'a, T1, T2, T3, E1> = Box<dyn FnOnce(T1, T2) -> BoxFuture<'a, Result<T3, E1>> + Send + Sync + 'a>;
Expand description

Type alias BoxedAsyncFn2 for Boxed FnOnce async function2 arguments

Aliased Type§

struct BoxedAsyncFn2<'a, T1, T2, T3, E1>(/* private fields */);

Trait Implementations§

Source§

impl<'a, T1, T2, T3, E1> Injector<T2, Box<dyn FnOnce(T1) -> Pin<Box<dyn Future<Output = Result<T3, E1>> + Send + 'a>> + Sync + Send + 'a>> for BoxedAsyncFn2<'a, T1, T2, T3, E1>
where T1: 'a, T2: Send + Sync + 'a, T3: 'a, E1: 'a,

Injector implementation for a given async function that accepts 1 + 1 arguments and returns a function with 1 arguments

Source§

fn provide(self, a: T2) -> BoxedAsyncFn1<'a, T1, T3, E1>