pub struct LoadGovernorPolicy {
pub stressed_queue_watermark: f64,
pub degraded_queue_watermark: f64,
pub recovery_queue_watermark: f64,
pub recovery_intervals: u8,
pub budget_overrun_soft_ratio: f64,
}Expand description
Conservative policy for classifying runtime load.
The first runtime governor intentionally uses one primary control family: render-budget degradation and explicit coalescing/admission evidence. Queue watermarks are advisory inputs when a queue cap exists; when the queue is uncapped, frame-budget and coalescer signals drive fallback classification.
Fields§
§stressed_queue_watermark: f64Queue occupancy ratio that enters stressed.
degraded_queue_watermark: f64Queue occupancy ratio that enters degraded.
recovery_queue_watermark: f64Queue occupancy ratio required before closing a degraded interval.
recovery_intervals: u8Consecutive steady intervals required before reporting recovery.
budget_overrun_soft_ratio: f64Frame-time ratio over budget that enters stressed when uncapped.
Trait Implementations§
Source§impl Clone for LoadGovernorPolicy
impl Clone for LoadGovernorPolicy
Source§fn clone(&self) -> LoadGovernorPolicy
fn clone(&self) -> LoadGovernorPolicy
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 moreimpl Copy for LoadGovernorPolicy
Source§impl Debug for LoadGovernorPolicy
impl Debug for LoadGovernorPolicy
Source§impl Default for LoadGovernorPolicy
impl Default for LoadGovernorPolicy
Source§impl PartialEq for LoadGovernorPolicy
impl PartialEq for LoadGovernorPolicy
Source§fn eq(&self, other: &LoadGovernorPolicy) -> bool
fn eq(&self, other: &LoadGovernorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoadGovernorPolicy
Auto Trait Implementations§
impl Freeze for LoadGovernorPolicy
impl RefUnwindSafe for LoadGovernorPolicy
impl Send for LoadGovernorPolicy
impl Sync for LoadGovernorPolicy
impl Unpin for LoadGovernorPolicy
impl UnsafeUnpin for LoadGovernorPolicy
impl UnwindSafe for LoadGovernorPolicy
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