pub struct StressConfig {
pub iterations: usize,
pub fail_fast: bool,
pub max_duration: Option<Duration>,
pub threshold: Option<f64>,
pub parallel_workers: usize,
}Expand description
Configuration for stress testing mode.
Fields§
§iterations: usizeNumber of times to run the test suite.
fail_fast: boolStop on first failure.
max_duration: Option<Duration>Maximum total duration for all iterations.
threshold: Option<f64>Minimum pass rate threshold (0.0 - 1.0). Fails CI if any test is below this.
parallel_workers: usizeNumber of parallel stress workers (0 = sequential).
Implementations§
Source§impl StressConfig
impl StressConfig
pub fn new(iterations: usize) -> Self
pub fn with_fail_fast(self, fail_fast: bool) -> Self
pub fn with_max_duration(self, duration: Duration) -> Self
pub fn with_threshold(self, threshold: f64) -> Self
pub fn with_parallel_workers(self, workers: usize) -> Self
Trait Implementations§
Source§impl Clone for StressConfig
impl Clone for StressConfig
Source§fn clone(&self) -> StressConfig
fn clone(&self) -> StressConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 StressConfig
impl Debug for StressConfig
Auto Trait Implementations§
impl Freeze for StressConfig
impl RefUnwindSafe for StressConfig
impl Send for StressConfig
impl Sync for StressConfig
impl Unpin for StressConfig
impl UnsafeUnpin for StressConfig
impl UnwindSafe for StressConfig
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