pub enum ScenarioError {
DeadlockDetected {
at_micros: Micros,
waiting: usize,
},
StepLimitExceeded {
limit: u64,
},
TaskPanicked(String),
}Expand description
Why a scenario run failed.
Variants§
DeadlockDetected
No task can run, no message is in flight, no timer is pending, and unfinished tasks remain.
StepLimitExceeded
The step budget ran out (probable livelock).
TaskPanicked(String)
A task body panicked; the panic is re-raised after the failure artifact is persisted.
Trait Implementations§
Source§impl Clone for ScenarioError
impl Clone for ScenarioError
Source§fn clone(&self) -> ScenarioError
fn clone(&self) -> ScenarioError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScenarioError
impl Debug for ScenarioError
Source§impl Display for ScenarioError
impl Display for ScenarioError
impl Eq for ScenarioError
Source§impl Error for ScenarioError
impl Error for ScenarioError
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()
Source§impl PartialEq for ScenarioError
impl PartialEq for ScenarioError
impl StructuralPartialEq for ScenarioError
Auto Trait Implementations§
impl Freeze for ScenarioError
impl RefUnwindSafe for ScenarioError
impl Send for ScenarioError
impl Sync for ScenarioError
impl Unpin for ScenarioError
impl UnsafeUnpin for ScenarioError
impl UnwindSafe for ScenarioError
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