Trait EventConsumer

Source
pub trait EventConsumer<Types>
where Types: NodeType,
{ // Required method fn handle_event<'life0, 'async_trait>( &'life0 mut self, event: Event<Types>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

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

Implementors§

Source§

impl<Types: NodeType> EventConsumer<Types> for EventsStreamer<Types>