pub struct PingRecord {
pub start: Instant,
pub rtt: Option<Duration>,
}Fields§
§start: InstantPing start time
rtt: Option<Duration>Round-trip time, if value is not set then ping is in process
Trait Implementations§
Source§impl Clone for PingRecord
impl Clone for PingRecord
Source§fn clone(&self) -> PingRecord
fn clone(&self) -> PingRecord
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 PingRecord
impl Debug for PingRecord
impl Copy for PingRecord
Auto Trait Implementations§
impl Freeze for PingRecord
impl RefUnwindSafe for PingRecord
impl Send for PingRecord
impl Sync for PingRecord
impl Unpin for PingRecord
impl UnwindSafe for PingRecord
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