ping-command 0.1.0

Ping command helper functions for running a system's existing ping command, then parsing the round trip metrics, and handling errors.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::time::Instant;
use crate::round_trip_statistics::RoundTripStatistics;

#[derive(Debug, Clone)]
pub struct Event {
    pub timestamp: Instant,
    pub host: String,
    pub success: bool,
    pub round_trip_statistics: Option<RoundTripStatistics>,
}