wita
pub fn run<F, T, E>(run_type: RunType, f: F) -> Result<(), E> where F: FnOnce() -> Result<T, E>, T: EventHandler + 'static,
Run the event loop.