pub struct LatencyRouterConfig {
pub alpha: f64,
pub slow_threshold: Duration,
}Expand description
Configuration for latency-based routing.
Fields§
§alpha: f64Exponential moving average factor (0.0-1.0).
slow_threshold: DurationThreshold after which providers are marked degraded.
Trait Implementations§
Source§impl Clone for LatencyRouterConfig
impl Clone for LatencyRouterConfig
Source§fn clone(&self) -> LatencyRouterConfig
fn clone(&self) -> LatencyRouterConfig
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 LatencyRouterConfig
impl Debug for LatencyRouterConfig
Auto Trait Implementations§
impl Freeze for LatencyRouterConfig
impl RefUnwindSafe for LatencyRouterConfig
impl Send for LatencyRouterConfig
impl Sync for LatencyRouterConfig
impl Unpin for LatencyRouterConfig
impl UnwindSafe for LatencyRouterConfig
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