pub trait RunApp {
type Event;
type Error;
// Required method
fn run_step(
&mut self,
step: RunStep<'_, Self::Event>,
) -> Result<RunControl, Self::Error> ⓘ;
}Expand description
Required Associated Types§
Required Methods§
Sourcefn run_step(
&mut self,
step: RunStep<'_, Self::Event>,
) -> Result<RunControl, Self::Error> ⓘ
fn run_step( &mut self, step: RunStep<'_, Self::Event>, ) -> Result<RunControl, Self::Error> ⓘ
Advances the app by one runtime step.
Returns a RunControl indicating whether execution should continue
or stop after the current step.
Returns an error if the step cannot be completed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".