pub trait LifecycleHook: Send + Sync { // Required method fn on_event(&self, event: &LifecycleEvent); }