pub fn run(rest: impl FnOnce() + Send + 'static) -> !
Expand description

Takes control of the main thread and runs the event loop. The given code will be run on a separate thread. This code will be able to interact with the event loop via proxy event loops ([event_loop::EventLoop])