Function event_handler

Source
pub fn event_handler<F>(f: F) -> Box<dyn FnMut(&Event) + Sync + Send + 'static>
where F: FnMut(&Event) + Sync + Send + 'static,