pub type EventHandler<T = ()> = Box<dyn Fn(&T) + Send + Sync>;
Expand description

A type alias for the closure to handle device event.