Skip to main content

ErrorReactantErased

Trait ErrorReactantErased 

Source
pub trait ErrorReactantErased:
    Send
    + Sync
    + 'static {
    // Required methods
    fn react_error_erased(
        &self,
        error: Arc<ReactantError>,
        payload: Arc<dyn PayloadErased + Send + Sync + 'static>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>;
    fn payload_type_id(&self) -> TypeId;
    fn codec_type_id(&self) -> TypeId;
    fn clone_to_box(
        &self,
    ) -> Box<dyn ErrorReactantErased + Send + Sync + 'static>;
    fn clone_to_arc(
        &self,
    ) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static>;
    fn clone_to_any(&self) -> Arc<dyn Any + Send + Sync + 'static>;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Type-erased error reactant

Required Methods§

Source

fn react_error_erased( &self, error: Arc<ReactantError>, payload: Arc<dyn PayloadErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>

Source

fn payload_type_id(&self) -> TypeId

Source

fn codec_type_id(&self) -> TypeId

Source

fn clone_to_box(&self) -> Box<dyn ErrorReactantErased + Send + Sync + 'static>

Source

fn clone_to_arc(&self) -> Arc<dyn ErrorReactantErased + Send + Sync + 'static>

Source

fn clone_to_any(&self) -> Arc<dyn Any + Send + Sync + 'static>

Source

fn as_any(&self) -> &dyn Any

Implementors§

Source§

impl<T, C, R> ErrorReactantErased for ErrorReactantErasedWrapper<T, C, R>
where T: Send + Sync + 'static, C: Codec<T> + CodecName + Send + Sync + 'static, R: ErrorReactant<T, C> + Send + Sync + Clone + 'static,