EventLoopExtNeverReturn

Trait EventLoopExtNeverReturn 

pub trait EventLoopExtNeverReturn {
    // Required method
    fn run_app_never_return<A>(self, app: A) -> !
       where A: ApplicationHandler + 'static;
}
Expand description

Additional methods on EventLoop for platforms whose run method never return.

Required Methods§

fn run_app_never_return<A>(self, app: A) -> !
where A: ApplicationHandler + 'static,

Run the event loop and call process::exit once finished.

§Platform-specific
  • iOS: This registers the callbacks with the system and calls UIApplicationMain.
  • macOS: Unimplemented (TODO: Should call NSApplicationMain).
  • Android/Orbital/Wayland/Windows/X11: Unsupported.
  • Web: Impossible to support properly.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§