pub struct HealthTrackerConfig {
pub degrade_threshold: f32,
pub unavailable_threshold: f32,
pub latency_alpha: f64,
}Expand description
Configuration for health tracking.
Fields§
§degrade_threshold: f32Failure rate above which providers are degraded.
Failure rate above which providers are marked unavailable.
latency_alpha: f64Exponential moving average factor for latency.
Trait Implementations§
Source§impl Clone for HealthTrackerConfig
impl Clone for HealthTrackerConfig
Source§fn clone(&self) -> HealthTrackerConfig
fn clone(&self) -> HealthTrackerConfig
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 HealthTrackerConfig
impl Debug for HealthTrackerConfig
Source§impl Default for HealthTrackerConfig
impl Default for HealthTrackerConfig
impl Copy for HealthTrackerConfig
Auto Trait Implementations§
impl Freeze for HealthTrackerConfig
impl RefUnwindSafe for HealthTrackerConfig
impl Send for HealthTrackerConfig
impl Sync for HealthTrackerConfig
impl Unpin for HealthTrackerConfig
impl UnwindSafe for HealthTrackerConfig
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