pub type EventHandler = Arc<dyn Fn(Event) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>;
Event handler for processing events
pub struct EventHandler { /* private fields */ }