SimulationApp

Trait SimulationApp 

Source
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§

Source

fn acquire_progress<'a>( &'a self, style: PStyle, order: Option<POrder<'a>>, ) -> Result<Option<ProgressBar>, SimErrorAny>

Source

fn set_cached_per_sec(&self, step: f64)

Source

fn set_plain_per_sec(&self, step: f64)

Source

fn report_debug<S: ToString>(&self, msg: S)

Source

fn report_info<S: ToString>(&self, msg: S)

Source

fn report_warn<S: ToString>(&self, msg: S)

Source

fn report_error<S: ToString>(&self, msg: S)

Provided Methods§

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§