pub struct StressConfig {
pub iterations: usize,
pub fail_fast: bool,
pub max_duration: Option<Duration>,
}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.
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
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