pub struct FairnessConfig {
pub input_priority_threshold: Duration,
pub enabled: bool,
pub dominance_threshold: u32,
pub fairness_threshold: f64,
}Expand description
Configuration for input fairness.
Fields§
§input_priority_threshold: DurationMaximum latency for input events before they get priority.
enabled: boolEnable fairness scheduling.
dominance_threshold: u32Number of consecutive resize-dominated cycles before intervention.
fairness_threshold: f64Minimum Jain’s fairness index to maintain.
Implementations§
Source§impl FairnessConfig
impl FairnessConfig
Sourcepub fn with_max_latency(self, latency: Duration) -> Self
pub fn with_max_latency(self, latency: Duration) -> Self
Create config with custom max input latency.
Sourcepub fn with_dominance_threshold(self, threshold: u32) -> Self
pub fn with_dominance_threshold(self, threshold: u32) -> Self
Create config with custom dominance threshold.
Trait Implementations§
Source§impl Clone for FairnessConfig
impl Clone for FairnessConfig
Source§fn clone(&self) -> FairnessConfig
fn clone(&self) -> FairnessConfig
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 FairnessConfig
impl Debug for FairnessConfig
Auto Trait Implementations§
impl Freeze for FairnessConfig
impl RefUnwindSafe for FairnessConfig
impl Send for FairnessConfig
impl Sync for FairnessConfig
impl Unpin for FairnessConfig
impl UnsafeUnpin for FairnessConfig
impl UnwindSafe for FairnessConfig
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