pub struct SelectionWeightConfig {
pub speedscore: f64,
pub slots: f64,
pub health: f64,
pub cache: f64,
pub network: f64,
pub priority: f64,
pub half_open_penalty: f64,
}Expand description
Weight configuration for the balanced selection strategy.
Fields§
§speedscore: f64Weight for SpeedScore (0.0-1.0).
slots: f64Weight for available slots (0.0-1.0).
health: f64Weight for health/success rate (0.0-1.0).
cache: f64Weight for cache affinity (0.0-1.0).
network: f64Weight for network latency (0.0-1.0).
priority: f64Weight for worker priority (0.0-1.0).
half_open_penalty: f64Penalty multiplier for half-open circuit workers (0.0-1.0).
Trait Implementations§
Source§impl Clone for SelectionWeightConfig
impl Clone for SelectionWeightConfig
Source§fn clone(&self) -> SelectionWeightConfig
fn clone(&self) -> SelectionWeightConfig
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 SelectionWeightConfig
impl Debug for SelectionWeightConfig
Source§impl Default for SelectionWeightConfig
impl Default for SelectionWeightConfig
Source§impl<'de> Deserialize<'de> for SelectionWeightConfig
impl<'de> Deserialize<'de> for SelectionWeightConfig
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 SelectionWeightConfig
impl RefUnwindSafe for SelectionWeightConfig
impl Send for SelectionWeightConfig
impl Sync for SelectionWeightConfig
impl Unpin for SelectionWeightConfig
impl UnsafeUnpin for SelectionWeightConfig
impl UnwindSafe for SelectionWeightConfig
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