diff --git a/fsrc-core/src/event_man.rs b/fsrc-core/src/event_man.rs index 9b2812d..93df545 100644 --- a/fsrc-core/src/event_man.rs +++ b/fsrc-core/src/event_man.rs @@ -96,6 +96,14 @@ pub trait EventReceiver { fn receive(&mut self) -> Option<(Event, Option)>; } +pub trait ListenerTable +{ + fn get_listeners( + &mut self, + key: ListenerType, + ) -> &[Listener]; +} + /// Generic event manager implementation. /// /// # Generics @@ -107,6 +115,7 @@ pub trait EventReceiver { pub struct EventManager { listeners: HashMap>>, + //listener_table: Box>, event_receiver: Box>, }