pub trait ReactantRaw<T, C>{
// Required methods
fn react(
&self,
payload: Arc<PayloadRaw<T, C>>,
) -> Pin<Box<dyn Future<Output = Result<(), ReactantError>> + Send + 'static>>;
fn erase_raw(
self: Box<Self>,
) -> Arc<dyn ReactantRawErased + Send + Sync + 'static>;
// Provided method
fn new_erased_raw(
self,
) -> Arc<dyn ReactantRawErased + Send + Sync + 'static>
where Self: Sized + 'static { ... }
}Required Methods§
fn react( &self, payload: Arc<PayloadRaw<T, C>>, ) -> Pin<Box<dyn Future<Output = Result<(), ReactantError>> + Send + 'static>>
fn erase_raw( self: Box<Self>, ) -> Arc<dyn ReactantRawErased + Send + Sync + 'static>
Provided Methods§
Sourcefn new_erased_raw(self) -> Arc<dyn ReactantRawErased + Send + Sync + 'static>where
Self: Sized + 'static,
fn new_erased_raw(self) -> Arc<dyn ReactantRawErased + Send + Sync + 'static>where
Self: Sized + 'static,
Helper to consume this reactant and return an erased Arc.