pub trait EventSenderTrait<E: Event + Send + Sync + 'static>: Send + Sync {
    // Required method
    fn send<'life0, 'async_trait>(
        &'life0 self,
        event: E
    ) -> Pin<Box<dyn Future<Output = Result<(), OnDemandError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl<E> EventSenderTrait<E> for Sender<E>
where E: Event + Send + Sync + 'static,

source§

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

source§

impl<E> EventSenderTrait<E> for UnboundedSender<E>
where E: Event + Send + Sync + 'static,

source§

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

Implementors§