#[non_exhaustive]pub struct PingSummary {
pub transmitted: usize,
pub received: usize,
pub loss: f64,
pub min_rtt: Option<Duration>,
pub avg_rtt: Option<Duration>,
pub max_rtt: Option<Duration>,
}Expand description
Aggregate statistics for a repeated ping series.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transmitted: usize§received: usize§loss: f64§min_rtt: Option<Duration>§avg_rtt: Option<Duration>§max_rtt: Option<Duration>Trait Implementations§
Source§impl Clone for PingSummary
impl Clone for PingSummary
Source§fn clone(&self) -> PingSummary
fn clone(&self) -> PingSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PingSummary
impl Debug for PingSummary
Source§impl PartialEq for PingSummary
impl PartialEq for PingSummary
Source§fn eq(&self, other: &PingSummary) -> bool
fn eq(&self, other: &PingSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PingSummary
Auto Trait Implementations§
impl Freeze for PingSummary
impl RefUnwindSafe for PingSummary
impl Send for PingSummary
impl Sync for PingSummary
impl Unpin for PingSummary
impl UnsafeUnpin for PingSummary
impl UnwindSafe for PingSummary
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