pub struct OneWayDelaySample {
pub client_to_server: Option<SignedDuration>,
pub server_to_client: Option<SignedDuration>,
}Expand description
Directional one-way delay samples computed from wall-clock timestamps.
Each directional field is an Option<SignedDuration>. None means the
required client or server wall-clock timestamp was unavailable, or the
timestamp arithmetic was out of range. Some(value) means the delay was
computed from available timestamps.
Negative computed values are preserved as Some instead of being clamped to
zero or dropped. A negative one-way delay usually indicates wall-clock skew
between the client and server.
Fields§
§client_to_server: Option<SignedDuration>Client-to-server delay.
This is computed from the client send wall time and the server receive wall time when both are available.
server_to_client: Option<SignedDuration>Server-to-client delay.
This is computed from the server send wall time and the client receive wall time when both are available.
Trait Implementations§
Source§impl Clone for OneWayDelaySample
impl Clone for OneWayDelaySample
Source§fn clone(&self) -> OneWayDelaySample
fn clone(&self) -> OneWayDelaySample
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OneWayDelaySample
Source§impl Debug for OneWayDelaySample
impl Debug for OneWayDelaySample
impl Eq for OneWayDelaySample
Source§impl PartialEq for OneWayDelaySample
impl PartialEq for OneWayDelaySample
Source§fn eq(&self, other: &OneWayDelaySample) -> bool
fn eq(&self, other: &OneWayDelaySample) -> bool
self and other values to be equal, and is used by ==.