#[non_exhaustive]pub enum RuntimeError {
SpawnFailed(Error),
ThreadPanicked,
ScenariosFailed(String),
}Expand description
Runtime and system errors outside the user’s control.
These represent environmental failures (OS thread limits, thread panics) that cannot be resolved by changing configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SpawnFailed(Error)
The OS refused to spawn a new thread.
Preserves the original std::io::Error via the #[source] attribute
so callers can inspect the error kind (e.g., resource exhaustion)
programmatically via the standard std::error::Error::source chain.
ThreadPanicked
A scenario thread panicked during execution.
ScenariosFailed(String)
One or more scenarios in a multi-scenario run failed.
The error messages from all failed scenario threads are collected and
joined into a single string. This variant exists to prevent thread-level
sink, runtime, or generator errors from being misclassified as
ConfigError when collected at the multi-runner level.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()