pub struct ClientTimestamp {
pub wall: SystemTime,
pub mono: Instant,
}Expand description
Client-side timestamp captured in both wall-clock and monotonic time.
Wall-clock time is used for protocol timestamp comparison and one-way delay calculations. Monotonic time is used for elapsed client-side timing such as RTT, scheduling, and timeouts.
Fields§
§wall: SystemTimeSystem wall-clock time.
mono: InstantMonotonic timestamp sampled alongside wall.
Implementations§
Trait Implementations§
Source§impl Clone for ClientTimestamp
impl Clone for ClientTimestamp
Source§fn clone(&self) -> ClientTimestamp
fn clone(&self) -> ClientTimestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientTimestamp
Source§impl Debug for ClientTimestamp
impl Debug for ClientTimestamp
impl Eq for ClientTimestamp
Source§impl PartialEq for ClientTimestamp
impl PartialEq for ClientTimestamp
Source§fn eq(&self, other: &ClientTimestamp) -> bool
fn eq(&self, other: &ClientTimestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientTimestamp
Auto Trait Implementations§
impl Freeze for ClientTimestamp
impl RefUnwindSafe for ClientTimestamp
impl Send for ClientTimestamp
impl Sync for ClientTimestamp
impl Unpin for ClientTimestamp
impl UnsafeUnpin for ClientTimestamp
impl UnwindSafe for ClientTimestamp
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