#[repr(u8)]pub enum DegradationLevel {
Normal = 0,
Reduced = 1,
Minimal = 2,
Emergency = 3,
}Expand description
Degradation level indicating current system resource state.
Variants§
Normal = 0
Normal operation - all features enabled
Reduced = 1
Reduced operation - skip optional features, reduce batch sizes
Minimal = 2
Minimal operation - essential data only, disable injections
Emergency = 3
Emergency - flush and terminate gracefully
Implementations§
Source§impl DegradationLevel
impl DegradationLevel
Sourcepub fn skip_data_quality(&self) -> bool
pub fn skip_data_quality(&self) -> bool
Check if data quality injection should be skipped at this level.
Sourcepub fn skip_anomaly_injection(&self) -> bool
pub fn skip_anomaly_injection(&self) -> bool
Check if anomaly injection should be skipped at this level.
Sourcepub fn skip_optional_fields(&self) -> bool
pub fn skip_optional_fields(&self) -> bool
Check if optional fields should be omitted at this level.
Sourcepub fn requires_immediate_flush(&self) -> bool
pub fn requires_immediate_flush(&self) -> bool
Check if immediate flush is required at this level.
Sourcepub fn should_terminate(&self) -> bool
pub fn should_terminate(&self) -> bool
Check if generation should terminate at this level.
Sourcepub fn batch_size_multiplier(&self) -> f64
pub fn batch_size_multiplier(&self) -> f64
Get recommended batch size multiplier (1.0 = normal, 0.5 = half, etc.)
Sourcepub fn anomaly_rate_multiplier(&self) -> f64
pub fn anomaly_rate_multiplier(&self) -> f64
Get recommended anomaly injection rate multiplier.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get description of what happens at this level.
Trait Implementations§
Source§impl Clone for DegradationLevel
impl Clone for DegradationLevel
Source§fn clone(&self) -> DegradationLevel
fn clone(&self) -> DegradationLevel
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 DegradationLevel
impl Debug for DegradationLevel
Source§impl Default for DegradationLevel
impl Default for DegradationLevel
Source§fn default() -> DegradationLevel
fn default() -> DegradationLevel
Returns the “default value” for a type. Read more
Source§impl Display for DegradationLevel
impl Display for DegradationLevel
Source§impl Ord for DegradationLevel
impl Ord for DegradationLevel
Source§fn cmp(&self, other: &DegradationLevel) -> Ordering
fn cmp(&self, other: &DegradationLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DegradationLevel
impl PartialEq for DegradationLevel
Source§impl PartialOrd for DegradationLevel
impl PartialOrd for DegradationLevel
impl Copy for DegradationLevel
impl Eq for DegradationLevel
impl StructuralPartialEq for DegradationLevel
Auto Trait Implementations§
impl Freeze for DegradationLevel
impl RefUnwindSafe for DegradationLevel
impl Send for DegradationLevel
impl Sync for DegradationLevel
impl Unpin for DegradationLevel
impl UnwindSafe for DegradationLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.