pub struct TimeSample {
pub client_sent_us: i64,
pub server_received_us: i64,
pub server_sent_us: i64,
pub client_received_us: i64,
}Expand description
The four timestamps of one round trip, in microseconds.
The two client_* fields come from the local monotonic clock and the two server_* fields
from the server clock; they need not share an epoch or a rate.
Fields§
§client_sent_us: i64Local time when the request was sent.
server_received_us: i64Server time when the request arrived.
server_sent_us: i64Server time when the answer was sent.
client_received_us: i64Local time when the answer arrived.
Trait Implementations§
Source§impl Clone for TimeSample
impl Clone for TimeSample
impl Copy for TimeSample
Source§impl Debug for TimeSample
impl Debug for TimeSample
impl Eq for TimeSample
Source§impl PartialEq for TimeSample
impl PartialEq for TimeSample
impl StructuralPartialEq for TimeSample
Auto Trait Implementations§
impl Forget for TimeSample
impl Freeze for TimeSample
impl Move for TimeSample
impl RefUnwindSafe for TimeSample
impl Send for TimeSample
impl Sync for TimeSample
impl Unpin for TimeSample
impl UnsafeUnpin for TimeSample
impl UnwindSafe for TimeSample
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