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