pub type BoxedAsyncFn1<'a, T1, T2, E1> = Box<dyn FnOnce(T1) -> BoxFuture<'a, Result<T2, E1>> + Send + Sync + 'a>;
Expand description
Type alias BoxedAsyncFn1 for Boxed FnOnce async function1 arguments
Aliased Type§
struct BoxedAsyncFn1<'a, T1, T2, E1>(/* private fields */);
Trait Implementations§
Source§impl<'a, T1: 'a + Send, T2: 'a + Send, T3: 'a, E1: Send + 'a, E2> Then<'a, T1, T2, T3, Box<dyn FnOnce(T2) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>, Box<dyn FnOnce(T1) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>> for BoxedAsyncFn1<'a, T1, T2, E1>
Then implementation for composing async function(BoxedAsyncFn1) with another async function(BoxedAsyncFn1)
impl<'a, T1: 'a + Send, T2: 'a + Send, T3: 'a, E1: Send + 'a, E2> Then<'a, T1, T2, T3, Box<dyn FnOnce(T2) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>, Box<dyn FnOnce(T1) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>> for BoxedAsyncFn1<'a, T1, T2, E1>
Then implementation for composing async function(BoxedAsyncFn1) with another async function(BoxedAsyncFn1)
Source§fn then(self, f: BoxedAsyncFn1<'a, T2, T3, E2>) -> BoxedAsyncFn1<'a, T1, T3, E2>
fn then(self, f: BoxedAsyncFn1<'a, T2, T3, E2>) -> BoxedAsyncFn1<'a, T1, T3, E2>
Compose self with function f Read more
Source§impl<'a, T1: 'a + Send, T2: 'a + Send, T3: 'a, E1: Send + 'a, E2> Then<'a, T1, T2, T3, Box<dyn FnOnce(T2) -> Result<T3, E2> + Sync + Send + 'a>, Box<dyn FnOnce(T1) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>> for BoxedAsyncFn1<'a, T1, T2, E1>
Then implementation for composing async function(BoxedAsyncFn1) with another sync function(BoxedFn1)
impl<'a, T1: 'a + Send, T2: 'a + Send, T3: 'a, E1: Send + 'a, E2> Then<'a, T1, T2, T3, Box<dyn FnOnce(T2) -> Result<T3, E2> + Sync + Send + 'a>, Box<dyn FnOnce(T1) -> Pin<Box<dyn Future<Output = Result<T3, E2>> + Send + 'a>> + Sync + Send + 'a>> for BoxedAsyncFn1<'a, T1, T2, E1>
Then implementation for composing async function(BoxedAsyncFn1) with another sync function(BoxedFn1)