Trait chaindexing::EventHandler
source · pub trait EventHandler: Send + Sync {
type SharedState: Send + Sync + Clone + Debug;
// Required method
fn handle_event<'a, 'b, 'life0, 'async_trait>(
&'life0 self,
event_context: EventHandlerContext<'a, 'b, Self::SharedState>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait,
'life0: 'async_trait;
}