AsyncMediatorInternal

Trait AsyncMediatorInternal 

Source
pub trait AsyncMediatorInternal<Ev: Debug> {
    // Required method
    fn publish<'life0, 'async_trait>(
        &'life0 self,
        event: Ev,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature async only.
Expand description

Publish an event Ev asynchronously from within a handler.

Required Methods§

Source

fn publish<'life0, 'async_trait>( &'life0 self, event: Ev, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<Dep, Ev> AsyncMediatorInternal<Ev> for CxAwareAsyncMediator<Dep, Ev>
where Dep: Debug + Send, Ev: Debug + Send,

Source§

impl<Ev> AsyncMediatorInternal<Ev> for BasicAsyncMediator<Ev>
where Ev: Debug + Send,