pub struct FairnessConfig {
pub lookback_secs: u64,
pub max_consecutive_selections: u32,
}Expand description
Fairness settings for the fair_fastest selection strategy.
Fields§
§lookback_secs: u64Lookback window in seconds for tracking recent selections.
max_consecutive_selections: u32Maximum consecutive selections for a single worker before penalty.
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 (const: unstable) · 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
Source§impl Default for FairnessConfig
impl Default for FairnessConfig
Source§impl<'de> Deserialize<'de> for FairnessConfig
impl<'de> Deserialize<'de> for FairnessConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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