pub struct PingResponse {
pub success: bool,
pub rtt_ms: Option<u64>,
pub metadata: HashMap<String, Value>,
}
Expand description
Response to a ping request
Fields§
§success: bool
Whether the ping was successful
rtt_ms: Option<u64>
Round-trip time in milliseconds
metadata: HashMap<String, Value>
Additional metadata
Trait Implementations§
Source§impl Clone for PingResponse
impl Clone for PingResponse
Source§fn clone(&self) -> PingResponse
fn clone(&self) -> PingResponse
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 moreAuto Trait Implementations§
impl Freeze for PingResponse
impl RefUnwindSafe for PingResponse
impl Send for PingResponse
impl Sync for PingResponse
impl Unpin for PingResponse
impl UnwindSafe for PingResponse
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