pub trait ReactantErased:
Send
+ Sync
+ 'static {
// Required methods
fn react_erased(
&self,
payload: Arc<dyn PayloadErased + Send + Sync + 'static>,
) -> Pin<Box<dyn Future<Output = Result<(), ReactantError>> + Send + 'static>>;
fn payload_type_id(&self) -> TypeId;
fn codec_type_id(&self) -> TypeId;
fn clone_to_box(&self) -> Box<dyn ReactantErased + Send + Sync + 'static>;
fn clone_to_arc(&self) -> Arc<dyn ReactantErased + Send + Sync + 'static>;
fn clone_to_any(&self) -> Arc<dyn Any + Send + Sync + 'static>;
fn as_any(&self) -> &dyn Any;
}Expand description
Type-erased reactant that can be stored in collections with other type-erased reactants