pub struct Ping {
pub connect_time: Option<Duration>,
pub latency: Option<Duration>,
pub total_time: Duration,
pub uri: String,
pub state: PingState,
}Expand description
The result of a ping. Can either be a success or a failure.
Fields§
§connect_time: Option<Duration>Time to establish a fresh connection
latency: Option<Duration>Time to execute the ping
total_time: DurationTotal elapsed time
uri: String§state: PingStateFailed or Ok
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ping
impl !RefUnwindSafe for Ping
impl Send for Ping
impl !Sync for Ping
impl Unpin for Ping
impl !UnwindSafe for Ping
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