pub trait EventProcessor { // Required method fn process_event(&mut self, event: Event) -> Option<State>; }