updated plugin event handler.

This commit is contained in:
michael-bailey 2022-04-23 19:46:53 +01:00
parent 68475abc76
commit 0c919f059d
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
use crate::plugin::WeakPluginInterface;
use foundation::event::Event;
use std::fmt::Debug;
use std::sync::Arc;
@ -24,7 +25,7 @@ pub type GetPluginFn = fn() -> Plugin;
#[async_trait::async_trait]
pub trait IPlugin: Send + Sync + Debug {
fn details(&self) -> PluginDetails;
async fn event(&self);
fn on_event(&self, event: Event);
fn set_interface(&self, interface: WeakPluginInterface);