pub enum StepError<ModelError, MonitorError, SchedulerError> {
Model {
action: ActionMeta,
source: ModelError,
},
Monitor {
action: ActionMeta,
source: MonitorError,
},
Scheduler(SchedulerError),
InvalidSelection(ActionKey),
Kernel(KernelFailure),
Limit(LimitFailure),
Poisoned,
Inactive(SimulationPhase),
}Expand description
Why one deterministic kernel step could not complete.
Variants§
Model
Consumer model action failed after its staged effects rolled back.
Monitor
A post-commit monitor rejected the resulting state.
Fields
§
action: ActionMetaCommitted action rejected by the monitor.
§
source: MonitorErrorConsumer monitor failure.
Scheduler(SchedulerError)
Scheduler policy failed during selection or replay validation.
InvalidSelection(ActionKey)
Scheduler returned an action outside the supplied ready set.
Kernel(KernelFailure)
A kernel ownership or lifecycle invariant failed.
Limit(LimitFailure)
A hard execution limit prevented another transition.
Poisoned
Panic unwinding crossed a model, monitor, or scheduler boundary.
Inactive(SimulationPhase)
The simulation is no longer active.
Trait Implementations§
Source§impl<ModelError: Debug, MonitorError: Debug, SchedulerError: Debug> Debug for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError: Debug, MonitorError: Debug, SchedulerError: Debug> Debug for StepError<ModelError, MonitorError, SchedulerError>
Source§impl<ME, NE, SE> Error for StepError<ME, NE, SE>
impl<ME, NE, SE> Error for StepError<ME, NE, SE>
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<ModelError, MonitorError, SchedulerError> Freeze for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> RefUnwindSafe for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> Send for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> Sync for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> Unpin for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> UnsafeUnpin for StepError<ModelError, MonitorError, SchedulerError>
impl<ModelError, MonitorError, SchedulerError> UnwindSafe for StepError<ModelError, MonitorError, SchedulerError>
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