pub type EventHandler<T = ()> = Box<dyn Fn(&T) + Send + Sync>;
A type alias for the closure to handle device event.