mithril_client::feedback

Trait FeedbackReceiver

source
pub trait FeedbackReceiver: Sync + Send {
    // Required method
    fn handle_event<'life0, 'async_trait>(
        &'life0 self,
        event: MithrilEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A receiver of MithrilEvent.

Required Methods§

source

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

Callback called by a FeedbackSender when it needs to send an event.

Implementors§