pub trait MainLoop {
// Required method
fn run(self) -> impl Future<Output = MainLoopExit>;
}Expand description
An interface used to run an Otter application.
Required Methods§
Sourcefn run(self) -> impl Future<Output = MainLoopExit>
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.