pub struct StressThresholds {
pub max_op_time_ms: u64,
pub max_memory_bytes: usize,
pub max_timing_variance: f64,
pub max_failure_rate: f64,
}Expand description
Performance thresholds for stress testing
Fields§
§max_op_time_ms: u64Max time per operation (ms)
max_memory_bytes: usizeMax memory per operation (bytes)
max_timing_variance: f64Max variance in operation times (coefficient of variation)
max_failure_rate: f64Max allowed failure rate (0.0 to 1.0)
Implementations§
Source§impl StressThresholds
impl StressThresholds
Sourcepub const fn strict() -> StressThresholds
pub const fn strict() -> StressThresholds
Strict thresholds for CI
Sourcepub const fn relaxed() -> StressThresholds
pub const fn relaxed() -> StressThresholds
Relaxed thresholds for development
Trait Implementations§
Source§impl Clone for StressThresholds
impl Clone for StressThresholds
Source§fn clone(&self) -> StressThresholds
fn clone(&self) -> StressThresholds
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 StressThresholds
impl Debug for StressThresholds
Source§impl Default for StressThresholds
impl Default for StressThresholds
Source§fn default() -> StressThresholds
fn default() -> StressThresholds
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StressThresholds
impl RefUnwindSafe for StressThresholds
impl Send for StressThresholds
impl Sync for StressThresholds
impl Unpin for StressThresholds
impl UnsafeUnpin for StressThresholds
impl UnwindSafe for StressThresholds
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more