pub struct PingResult {
pub sent: u32,
pub received: u32,
pub rtt_min: Option<Duration>,
pub rtt_avg: Option<Duration>,
pub rtt_max: Option<Duration>,
}Expand description
Result of an ICMP echo probe.
Fields§
§sent: u32Number of echo requests sent.
received: u32Number of echo replies received.
rtt_min: Option<Duration>§rtt_avg: Option<Duration>§rtt_max: Option<Duration>Implementations§
Trait Implementations§
Source§impl Clone for PingResult
impl Clone for PingResult
Source§fn clone(&self) -> PingResult
fn clone(&self) -> PingResult
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 PingResult
impl Debug for PingResult
Source§impl<'de> Deserialize<'de> for PingResult
impl<'de> Deserialize<'de> for PingResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PingResult
impl PartialEq for PingResult
Source§impl Serialize for PingResult
impl Serialize for PingResult
impl StructuralPartialEq for PingResult
Auto Trait Implementations§
impl Freeze for PingResult
impl RefUnwindSafe for PingResult
impl Send for PingResult
impl Sync for PingResult
impl Unpin for PingResult
impl UnsafeUnpin for PingResult
impl UnwindSafe for PingResult
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