pub struct HealthStats {
pub status: HealthStatus,
pub failure_rate: f64,
pub total_requests: u64,
pub total_failures: u64,
pub is_healthy: bool,
}Expand description
Health statistics
Fields§
§status: HealthStatusCurrent health status
failure_rate: f64Current failure rate (0.0-1.0)
total_requests: u64Total requests processed
total_failures: u64Total failures
is_healthy: boolWhether the provider is currently healthy
Trait Implementations§
Source§impl Clone for HealthStats
impl Clone for HealthStats
Source§fn clone(&self) -> HealthStats
fn clone(&self) -> HealthStats
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 moreAuto Trait Implementations§
impl Freeze for HealthStats
impl RefUnwindSafe for HealthStats
impl Send for HealthStats
impl Sync for HealthStats
impl Unpin for HealthStats
impl UnwindSafe for HealthStats
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