pub struct PingStatistics {
pub packets_transmitted: u32,
pub packets_received: u32,
pub packet_loss: f64,
pub min_rtt: Option<Duration>,
pub max_rtt: Option<Duration>,
pub avg_rtt: Option<Duration>,
pub stddev_rtt: Option<Duration>,
}Expand description
Summary statistics for a series of ping operations
Fields§
§packets_transmitted: u32Total packets transmitted
packets_received: u32Total packets received
packet_loss: f64Packet loss percentage (0.0 to 100.0)
min_rtt: Option<Duration>Minimum round-trip time
max_rtt: Option<Duration>Maximum round-trip time
avg_rtt: Option<Duration>Average round-trip time
stddev_rtt: Option<Duration>Standard deviation of round-trip times
Implementations§
Trait Implementations§
Source§impl Clone for PingStatistics
impl Clone for PingStatistics
Source§fn clone(&self) -> PingStatistics
fn clone(&self) -> PingStatistics
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 moreSource§impl Debug for PingStatistics
impl Debug for PingStatistics
Auto Trait Implementations§
impl Freeze for PingStatistics
impl RefUnwindSafe for PingStatistics
impl Send for PingStatistics
impl Sync for PingStatistics
impl Unpin for PingStatistics
impl UnwindSafe for PingStatistics
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