pub struct HealthSnapshot {
pub avg_latency: Duration,
pub jitter: Duration,
pub min_latency: Duration,
pub max_latency: Duration,
pub last_latency: Duration,
pub sample_count: usize,
pub failure_count: usize,
pub health_status: HealthStatus,
}Expand description
Snapshot of API health metrics at a point in time.
Fields§
§avg_latency: Duration§jitter: Duration§min_latency: Duration§max_latency: Duration§last_latency: Duration§sample_count: usize§failure_count: usize§health_status: HealthStatusTrait Implementations§
Source§impl Clone for HealthSnapshot
impl Clone for HealthSnapshot
Source§fn clone(&self) -> HealthSnapshot
fn clone(&self) -> HealthSnapshot
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 HealthSnapshot
impl RefUnwindSafe for HealthSnapshot
impl Send for HealthSnapshot
impl Sync for HealthSnapshot
impl Unpin for HealthSnapshot
impl UnsafeUnpin for HealthSnapshot
impl UnwindSafe for HealthSnapshot
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