pub struct PingStats {
pub total: usize,
pub up: usize,
pub down: usize,
pub uptime_percent: f64,
pub avg_latency_ms: Option<f64>,
}Expand description
Aggregate stats across the in-memory window.
Fields§
§total: usize§up: usize§down: usize§uptime_percent: f64Uptime over the window, in percent.
avg_latency_ms: Option<f64>Avg latency in ms over successful samples.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PingStats
impl RefUnwindSafe for PingStats
impl Send for PingStats
impl Sync for PingStats
impl Unpin for PingStats
impl UnwindSafe for PingStats
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