Skip to main content

OperatorComposeExtensionMapError

Trait OperatorComposeExtensionMapError 

Source
pub trait OperatorComposeExtensionMapError: Sized + ComposableOperator {
    // Provided method
    fn map_error<NextOutError, ErrorMapper>(
        self,
        error_mapper: ErrorMapper,
    ) -> CompositeOperator<Self, MapErrorOperator<Self::Out, Self::OutError, ErrorMapper, NextOutError>>
       where NextOutError: Signal,
             ErrorMapper: 'static + FnOnce(Self::OutError) -> NextOutError + Clone + Send + Sync { ... }
}

Provided Methods§

Source

fn map_error<NextOutError, ErrorMapper>( self, error_mapper: ErrorMapper, ) -> CompositeOperator<Self, MapErrorOperator<Self::Out, Self::OutError, ErrorMapper, NextOutError>>
where NextOutError: Signal, ErrorMapper: 'static + FnOnce(Self::OutError) -> NextOutError + Clone + Send + Sync,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§