Skip to main content

SimHandleEvents

Trait SimHandleEvents 

Source
pub trait SimHandleEvents {
    // Required method
    fn handle_events(
        &mut self,
        time: f64,
        input_event: bool,
    ) -> Result<(bool, bool), Error>;
}
Expand description

Interface for handling events in the simulation. Implemented by ME in fmi2 and ME+CS in fmi3.

Required Methods§

Source

fn handle_events( &mut self, time: f64, input_event: bool, ) -> Result<(bool, bool), Error>

Handle events during the simulation.

§Returns

Returns a tuple of (reset_solver: bool, terminate_simulation: bool)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§