Type Alias function_compose::BoxedFn1

source ·
pub type BoxedFn1<'a, T1, T2> = Box<dyn FnOnce(T1) -> Result<T2, FnError> + Send + Sync + 'a>;
Expand description

Type alias BoxedFn1 for Boxed FnOnce sync function with 1 arguments

Aliased Type§

struct BoxedFn1<'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 BoxedFn1<'a, T1, T2>

Then implementation for composing sync function(BoxedFn1) with another async function(BoxedAsyncFn1)

source§

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) -> Result<T3, FnError> + Sync + Send + 'a>> for BoxedFn1<'a, T1, T2>

Then implementation for composing sync function (BoxedFn1) with another sync function(BoxedFn1)

source§

fn then(self, f: BoxedFn1<'a, T2, T3>) -> BoxedFn1<'a, T1, T3>

Compose self with function f Read more