mmtickets_common::events

Trait Publisher

Source
pub trait Publisher {
    type Event;

    // Required method
    fn publish<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn publish<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 Context, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§