pub trait PluginEventHandler: Send + Sync {
// Required method
fn handle_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 PluginEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Plugin event handler
Required Methods§
Sourcefn handle_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 PluginEvent,
) -> 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 PluginEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle a plugin event