pub trait SimBootstrap:
Send
+ Sync
+ 'static {
// Provided methods
fn props(&self) -> Vec<(String, String)> { ... }
fn build_sim(&self, config: SimConfig) -> SimConfig { ... }
fn init(&self) { ... }
fn on_start(&self, sim: &mut impl Sim) { ... }
fn on_step(&self, sim: &mut impl Sim) { ... }
fn on_end(&self, sim: &mut impl Sim) { ... }
}Expand description
Trait for bootstrapping and configuring simulations.
Implement this trait to customize simulation behavior at various lifecycle points. All methods have default implementations that do nothing.
Provided Methods§
Sourcefn props(&self) -> Vec<(String, String)>
fn props(&self) -> Vec<(String, String)>
Returns custom properties to include in simulation output.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".