pub struct SourceMeasurement {
pub id: SourceId,
pub offset: NtpDuration,
pub delay: NtpDuration,
pub dispersion: NtpDuration,
pub jitter: f64,
pub stratum: u8,
pub leap_indicator: LeapIndicator,
pub root_delay: NtpDuration,
pub root_dispersion: NtpDuration,
pub time: NtpTimestamp,
}Expand description
Measurement from a single time source after filtering.
Fields§
§id: SourceId§offset: NtpDurationOffset from local clock.
delay: NtpDurationRound-trip delay.
dispersion: NtpDurationError bound.
jitter: f64RMS jitter estimate.
stratum: u8Stratum of this source.
leap_indicator: LeapIndicatorLeap indicator from source.
root_delay: NtpDurationRoot delay to primary reference.
root_dispersion: NtpDurationRoot dispersion.
time: NtpTimestampWhen this measurement was taken.
Implementations§
Source§impl SourceMeasurement
impl SourceMeasurement
Sourcepub fn root_distance(&self) -> NtpDuration
pub fn root_distance(&self) -> NtpDuration
Root distance: total error budget from this source to the primary reference. root_distance = root_delay/2 + root_dispersion + |delay|/2 + dispersion
Trait Implementations§
Source§impl Clone for SourceMeasurement
impl Clone for SourceMeasurement
Source§fn clone(&self) -> SourceMeasurement
fn clone(&self) -> SourceMeasurement
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 moreAuto Trait Implementations§
impl Freeze for SourceMeasurement
impl RefUnwindSafe for SourceMeasurement
impl Send for SourceMeasurement
impl Sync for SourceMeasurement
impl Unpin for SourceMeasurement
impl UnsafeUnpin for SourceMeasurement
impl UnwindSafe for SourceMeasurement
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