pub struct Config {
pub t_start: f64,
pub t_stop: f64,
pub time_scale: f64,
pub max_jitter: Option<Duration>,
}
Expand description
Configuration for the DEVS simulator.
Fields§
§t_start: f64
The start time of the simulation.
t_stop: f64
The stop time of the simulation.
time_scale: f64
The time scale factor for the simulation.
If time_scale
is greater than 1.0, the simulation runs faster than real time.
If time_scale
is less than 1.0, the simulation runs slower than real time.
max_jitter: Option<Duration>
The maximum jitter duration allowed in the simulation.
If None
, jitter is not checked. If Some(duration)
, the simulator will panic
if the wall-clock time drift exceeds this duration.
Implementations§
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more