pub struct TrackingReport {
pub synchronized: bool,
pub offset_s: f64,
pub freq_ppm: f64,
pub error_bound_s: f64,
pub poll_log2: i8,
}Expand description
Daemon tracking state (the status.tracking op).
Read synchronized first. It is true only when a correction actually
reached the clock, and the other fields are only meaningful when it is: an
unsynchronized daemon is running an OPEN loop (a dry run never steers, and
an acquiring loop has not converged), so its freq_ppm is not a drift
measurement and its offset_s is an estimate nothing has acted on. A
consumer deciding anything on this report — a capability expiry, a
settlement timestamp — should treat synchronized == false as “no usable
time from here” rather than reading the numbers beside it.
Fields§
§synchronized: boolWhether a correction actually reached the clock. See the type docs: every other field is conditioned on this.
offset_s: f64§freq_ppm: f64§error_bound_s: f64§poll_log2: i8Trait Implementations§
Source§impl Clone for TrackingReport
impl Clone for TrackingReport
Source§fn clone(&self) -> TrackingReport
fn clone(&self) -> TrackingReport
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 moreSource§impl Debug for TrackingReport
impl Debug for TrackingReport
Source§impl<'de> Deserialize<'de> for TrackingReport
impl<'de> Deserialize<'de> for TrackingReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrackingReport
impl PartialEq for TrackingReport
Source§impl Serialize for TrackingReport
impl Serialize for TrackingReport
impl StructuralPartialEq for TrackingReport
Auto Trait Implementations§
impl Freeze for TrackingReport
impl RefUnwindSafe for TrackingReport
impl Send for TrackingReport
impl Sync for TrackingReport
impl Unpin for TrackingReport
impl UnsafeUnpin for TrackingReport
impl UnwindSafe for TrackingReport
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