pub trait CaepEventHandler: Send + Sync {
// Required methods
fn handle_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 CaepEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn supported_event_types(&self) -> Vec<CaepEventType>;
}Expand description
Event handler trait for CAEP events
Required Methods§
Sourcefn handle_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 CaepEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 CaepEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle a CAEP event
Sourcefn supported_event_types(&self) -> Vec<CaepEventType>
fn supported_event_types(&self) -> Vec<CaepEventType>
Get event types this handler can process