Skip to main content

ErrorReactant

Trait ErrorReactant 

Source
pub trait ErrorReactant<T, C>: Send + Sync
where C: Codec<T> + CodecName + Send + Sync + 'static, T: Send + Sync + 'static,
{ // Required methods fn react_error( &self, error: Arc<ReactantError>, payload: Arc<Payload<T, C>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>; fn erase_error( self: Box<Self>, ) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static>; // Provided method fn new_erased_error( self, ) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static> where Self: Sized + 'static { ... } }

Required Methods§

Source

fn react_error( &self, error: Arc<ReactantError>, payload: Arc<Payload<T, C>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>

Source

fn erase_error( self: Box<Self>, ) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static>

Provided Methods§

Source

fn new_erased_error( self, ) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static>
where Self: Sized + 'static,

Helper to consume this error reactant and return an erased Arc.

Implementors§