pub struct PingStats {
pub packets_tx: u32,
pub packets_rx: u32,
pub rtt_min: Duration,
pub rtt_avg: Duration,
pub rtt_max: Duration,
pub rtt_std_dev: Duration,
}Expand description
Summary statistics produced by ping.
Mirrors the output of the Unix ping command: packet counts and
round-trip time statistics computed across all replied probes.
Fields§
§packets_tx: u32Total number of ICMP echo requests transmitted.
packets_rx: u32Number of ICMP echo replies received (i.e. non-timed-out probes).
rtt_min: DurationMinimum round-trip time across all received replies.
rtt_avg: DurationMean round-trip time across all received replies.
rtt_max: DurationMaximum round-trip time across all received replies.
rtt_std_dev: DurationPopulation standard deviation of the round-trip times.
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 UnsafeUnpin 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