pub struct HealthCheckConfig {
pub success_rate_healthy: f64,
pub success_rate_degraded: f64,
pub max_latency_healthy_ms: u64,
pub max_latency_degraded_ms: u64,
pub max_open_circuits_healthy: usize,
pub max_open_circuits_degraded: usize,
}Expand description
Health checker configuration
Fields§
§success_rate_healthy: f64Success rate threshold for healthy (0.0 - 1.0)
success_rate_degraded: f64Success rate threshold for degraded (0.0 - 1.0)
max_latency_healthy_ms: u64Max average latency for healthy (ms)
max_latency_degraded_ms: u64Max average latency for degraded (ms)
max_open_circuits_healthy: usizeMax open circuits for healthy
max_open_circuits_degraded: usizeMax open circuits for degraded
Trait Implementations§
Source§impl Clone for HealthCheckConfig
impl Clone for HealthCheckConfig
Source§fn clone(&self) -> HealthCheckConfig
fn clone(&self) -> HealthCheckConfig
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 HealthCheckConfig
impl Debug for HealthCheckConfig
Auto Trait Implementations§
impl Freeze for HealthCheckConfig
impl RefUnwindSafe for HealthCheckConfig
impl Send for HealthCheckConfig
impl Sync for HealthCheckConfig
impl Unpin for HealthCheckConfig
impl UnwindSafe for HealthCheckConfig
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