pub struct TargetResult {
pub target: String,
pub loss_rate: f64,
pub latency: u128,
pub loss: u32,
pub received: u32,
pub bitflip_count: u32,
}
Expand description
TargetResult is used to store the ping stat result of one target.
Fields§
§target: String
The target of the ping result.
loss_rate: f64
The loss rate of the ping result.
latency: u128
The average latency of the ping result.
loss: u32
Theloss count of the ping result.
received: u32
The received count of the ping result.
bitflip_count: u32
The bitflip count of the ping result.
Trait Implementations§
Source§impl Clone for TargetResult
impl Clone for TargetResult
Source§fn clone(&self) -> TargetResult
fn clone(&self) -> TargetResult
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 TargetResult
impl Debug for TargetResult
Source§impl Default for TargetResult
impl Default for TargetResult
Source§fn default() -> TargetResult
fn default() -> TargetResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TargetResult
impl RefUnwindSafe for TargetResult
impl Send for TargetResult
impl Sync for TargetResult
impl Unpin for TargetResult
impl UnwindSafe for TargetResult
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