Trait CxOsApi

Source
pub trait CxOsApi {
    // Required methods
    fn init_cx_os(&mut self);
    fn spawn_thread<F>(&mut self, f: F)
       where F: FnOnce() + Send + 'static;

    // Provided methods
    fn start_stdin_service(&mut self) { ... }
    fn pre_start() -> bool { ... }
}

Required Methods§

Source

fn init_cx_os(&mut self)

Source

fn spawn_thread<F>(&mut self, f: F)
where F: FnOnce() + Send + 'static,

Provided Methods§

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§