Skip to main content

ConsoleHost

Trait ConsoleHost 

Source
pub trait ConsoleHost {
    // Required method
    fn run(self: Box<Self>) -> Result<()>;
}
Expand description

Trait to run the console’s host on the main UI thread (if needed).

Required Methods§

Source

fn run(self: Box<Self>) -> Result<()>

Executes the console’s host event loop.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§