pub trait RuntimeLoop {
// Required methods
fn waker(&self) -> Arc<dyn RuntimeWaker>;
fn run<T>(&self, on_step: impl FnMut() -> ControlFlow<T>) -> T;
}Required Methods§
fn waker(&self) -> Arc<dyn RuntimeWaker>
fn run<T>(&self, on_step: impl FnMut() -> ControlFlow<T>) -> T
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.