pub trait MainThreadSession: 'static {
// Required methods
fn run_one_frame(&mut self);
fn running(&self) -> bool;
}Expand description
Devices that need to can run sessions on the main thread.
Required Methods§
fn run_one_frame(&mut self)
fn running(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".