pub struct CascadeConfig {
pub guard: ConformalFrameGuardConfig,
pub recovery_threshold: u32,
pub max_degradation: DegradationLevel,
pub min_trigger_level: DegradationLevel,
pub degradation_floor: DegradationLevel,
}Expand description
Configuration for the degradation cascade.
Fields§
§guard: ConformalFrameGuardConfigConformal frame guard configuration.
recovery_threshold: u32Consecutive within-budget frames required before upgrading (recovery). Default: 10.
max_degradation: DegradationLevelMaximum degradation level the cascade is allowed to reach.
Default: DegradationLevel::SkipFrame (no limit).
min_trigger_level: DegradationLevelMinimum degradation level to use when the guard triggers.
If the current level is below this, jump directly to it.
Default: DegradationLevel::SimpleBorders (gradual).
degradation_floor: DegradationLevelMinimum quality floor: the cascade will never degrade past this level.
Default: DegradationLevel::SimpleBorders — preserves readable text
content, preventing escalation to EssentialOnly, Skeleton, or
SkipFrame after transient focus/resize spikes.
This is distinct from max_degradation which caps the absolute worst
level. The floor is a safety net that prevents content-suppressing
degradation regardless of how bad the frame budget looks.
Trait Implementations§
Source§impl Clone for CascadeConfig
impl Clone for CascadeConfig
Source§fn clone(&self) -> CascadeConfig
fn clone(&self) -> CascadeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more