pub struct SourceEstimate {
pub id: usize,
pub offset: f64,
pub root_distance: f64,
pub stratum: u8,
}Expand description
One source’s current estimate, as fed to selection.
Fields§
§id: usizeCaller’s identifier for the source (index, socket id, …).
offset: f64Seconds to add to the local clock.
root_distance: f64Root distance: delay/2 + dispersion, seconds. Bounds the interval.
stratum: u8Trait Implementations§
Source§impl Clone for SourceEstimate
impl Clone for SourceEstimate
Source§fn clone(&self) -> SourceEstimate
fn clone(&self) -> SourceEstimate
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 SourceEstimate
Source§impl Debug for SourceEstimate
impl Debug for SourceEstimate
Source§impl PartialEq for SourceEstimate
impl PartialEq for SourceEstimate
impl StructuralPartialEq for SourceEstimate
Auto Trait Implementations§
impl Freeze for SourceEstimate
impl RefUnwindSafe for SourceEstimate
impl Send for SourceEstimate
impl Sync for SourceEstimate
impl Unpin for SourceEstimate
impl UnsafeUnpin for SourceEstimate
impl UnwindSafe for SourceEstimate
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