pub struct QualityWeights {
pub success_rate: f64,
pub rtt: f64,
pub freshness: f64,
pub capabilities: f64,
}Expand description
Weights for quality score calculation
Fields§
§success_rate: f64Weight for success rate component (default: 0.4)
rtt: f64Weight for RTT component (default: 0.25)
freshness: f64Weight for age/freshness component (default: 0.15)
capabilities: f64Weight for capability bonuses (default: 0.2)
Trait Implementations§
Source§impl Clone for QualityWeights
impl Clone for QualityWeights
Source§fn clone(&self) -> QualityWeights
fn clone(&self) -> QualityWeights
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 QualityWeights
impl Debug for QualityWeights
Auto Trait Implementations§
impl Freeze for QualityWeights
impl RefUnwindSafe for QualityWeights
impl Send for QualityWeights
impl Sync for QualityWeights
impl Unpin for QualityWeights
impl UnwindSafe for QualityWeights
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