pub trait CxOsApi {
// Required methods
fn init_cx_os(&mut self);
fn spawn_thread<F>(&mut self, f: F)
where F: FnOnce() + Send + 'static;
fn open_url(&mut self, url: &str, in_place: OpenUrlInPlace);
fn seconds_since_app_start(&self) -> f64;
// Provided methods
fn start_stdin_service(&mut self) { ... }
fn pre_start() -> bool { ... }
fn default_window_size(&self) -> DVec2 { ... }
fn max_texture_width() -> usize { ... }
fn in_xr_mode(&self) -> bool { ... }
fn micro_zbias_step(&self) -> f32 { ... }
}
Required Methods§
fn init_cx_os(&mut self)
fn spawn_thread<F>(&mut self, f: F)
fn open_url(&mut self, url: &str, in_place: OpenUrlInPlace)
fn seconds_since_app_start(&self) -> f64
Provided Methods§
fn start_stdin_service(&mut self)
fn pre_start() -> bool
fn default_window_size(&self) -> DVec2
fn max_texture_width() -> usize
fn in_xr_mode(&self) -> bool
fn micro_zbias_step(&self) -> f32
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.