Skip to main content

ReactantRaw

Trait ReactantRaw 

Source
pub trait ReactantRaw<T, C>
where C: Codec<T> + CodecName + Send + Sync + 'static, T: Send + Sync + 'static, Self: Send + Sync,
{ // 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§

Source

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

Source

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

Provided Methods§

Source

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.

Implementors§

Source§

impl<T, C> ReactantRaw<T, C> for PlexusExternalExternalReactant<T, C>
where C: Codec<T> + CodecName + Send + Sync + 'static, T: Send + Sync + 'static,