pub trait SimulationApp:
Debug
+ Sync
+ Send
+ 'static {
// Required methods
fn acquire_progress<'a>(
&'a self,
style: PStyle,
order: Option<POrder<'a>>,
) -> Result<Option<ProgressBar>, SimErrorAny>;
fn set_cached_per_sec(&self, step: f64);
fn set_plain_per_sec(&self, step: f64);
fn report_debug<S: ToString>(&self, msg: S);
fn report_info<S: ToString>(&self, msg: S);
fn report_warn<S: ToString>(&self, msg: S);
fn report_error<S: ToString>(&self, msg: S);
// Provided method
fn app_is_gone() -> SimErrorAny { ... }
}Required Methods§
fn acquire_progress<'a>( &'a self, style: PStyle, order: Option<POrder<'a>>, ) -> Result<Option<ProgressBar>, SimErrorAny>
fn set_cached_per_sec(&self, step: f64)
fn set_plain_per_sec(&self, step: f64)
fn report_debug<S: ToString>(&self, msg: S)
fn report_info<S: ToString>(&self, msg: S)
fn report_warn<S: ToString>(&self, msg: S)
fn report_error<S: ToString>(&self, msg: S)
Provided Methods§
fn app_is_gone() -> SimErrorAny
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.