pub type EventHandler = Arc<dyn Fn(ProtocolEvent) + Send + Sync + 'static>;
pub struct EventHandler { /* private fields */ }