pub enum SimError {
DuplicateModel(String),
UnknownModel(String),
NonAdvancingStep(f64, f64),
Advance(String, String),
CouplingTargetNoInput(String),
}Expand description
Errors raised while orchestrating a Simulation or
advancing a SubModel.
Variants§
DuplicateModel(String)
A sub-model was registered with an id that is already in use.
UnknownModel(String)
A referenced sub-model id does not exist in the simulation.
NonAdvancingStep(f64, f64)
The target time for step_until was not strictly greater than the
current global time.
Advance(String, String)
A sub-model failed while advancing its internal state.
CouplingTargetNoInput(String)
A coupling referenced a model that does not expose an input buffer.
Trait Implementations§
Source§impl Error for SimError
impl Error for SimError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SimError
impl RefUnwindSafe for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnsafeUnpin for SimError
impl UnwindSafe for SimError
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