MainLoop

Trait MainLoop 

Source
pub trait MainLoop {
    // Required method
    fn run(self) -> impl Future<Output = MainLoopExit>;
}
Expand description

An interface used to run an Otter application.

Required Methods§

Source

fn run(self) -> impl Future<Output = MainLoopExit>

Run the main loop.

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§