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