pub struct CascadePolicyConfig {
pub recovery_threshold: u32,
pub max_degradation: DegradationLevel,
pub min_trigger_level: DegradationLevel,
pub degradation_floor: DegradationLevel,
}Expand description
Degradation cascade policy parameters.
Fields§
§recovery_threshold: u32Consecutive within-budget frames before upgrading one level. Default: 10.
max_degradation: DegradationLevelMaximum degradation level allowed. Default: SkipFrame.
min_trigger_level: DegradationLevelMinimum degradation level when first triggered. Default: SimpleBorders.
degradation_floor: DegradationLevelMinimum quality floor: the cascade will never degrade past this level.
Default: SimpleBorders — preserves readable text content, preventing
escalation to EssentialOnly, Skeleton, or SkipFrame after
transient focus/resize spikes.
Trait Implementations§
Source§impl Clone for CascadePolicyConfig
impl Clone for CascadePolicyConfig
Source§fn clone(&self) -> CascadePolicyConfig
fn clone(&self) -> CascadePolicyConfig
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 CascadePolicyConfig
impl Debug for CascadePolicyConfig
Auto Trait Implementations§
impl Freeze for CascadePolicyConfig
impl RefUnwindSafe for CascadePolicyConfig
impl Send for CascadePolicyConfig
impl Sync for CascadePolicyConfig
impl Unpin for CascadePolicyConfig
impl UnsafeUnpin for CascadePolicyConfig
impl UnwindSafe for CascadePolicyConfig
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