Type Alias UtcClockDetails

Source
pub type UtcClockDetails = ClockDetails<BootTimeline, UtcTimeline>;
Expand description

Details of a UTC clock.

Aliased Type§

struct UtcClockDetails {
    pub backstop: Instant<UtcTimeline>,
    pub ticks_to_synthetic: ClockTransformation<BootTimeline, UtcTimeline>,
    pub reference_to_synthetic: ClockTransformation<BootTimeline, UtcTimeline>,
    pub error_bounds: u64,
    pub query_ticks: i64,
    pub last_value_update_ticks: i64,
    pub last_rate_adjust_update_ticks: i64,
    pub last_error_bounds_update_ticks: i64,
    pub generation_counter: u32,
}

Fields§

§backstop: Instant<UtcTimeline>

The minimum time the clock can ever be set to.

§ticks_to_synthetic: ClockTransformation<BootTimeline, UtcTimeline>

The current ticks to clock transformation.

§reference_to_synthetic: ClockTransformation<BootTimeline, UtcTimeline>

The current clock monotonic to clock transformation.

§error_bounds: u64

The current symmetric error estimate (if any) for the clock, measured in nanoseconds.

§query_ticks: i64

An observation of the system tick counter which was taken during the observation of the clock.

§last_value_update_ticks: i64

The last time the clock’s value was updated as defined by the clock monotonic reference timeline.

§last_rate_adjust_update_ticks: i64

The last time the clock’s rate adjustment was updated as defined by the clock monotonic reference timeline.

§last_error_bounds_update_ticks: i64

The last time the clock’s error bounds were updated as defined by the clock monotonic reference timeline.

§generation_counter: u32

The generation nonce.

Trait Implementations

Source§

impl<Reference, Output> Clone for ClockDetails<Reference, Output>
where Reference: Clone, Output: Clone,

Source§

fn clone(&self) -> ClockDetails<Reference, Output>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Reference, Output> Debug for ClockDetails<Reference, Output>
where Reference: Debug, Output: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<Reference, Output> From<zx_clock_details_v1_t> for ClockDetails<Reference, Output>
where Reference: Timeline, Output: Timeline,

Source§

fn from(details: zx_clock_details_v1_t) -> ClockDetails<Reference, Output>

Converts to this type from the input type.
Source§

impl<Reference, Output> PartialEq for ClockDetails<Reference, Output>
where Reference: PartialEq, Output: PartialEq,

Source§

fn eq(&self, other: &ClockDetails<Reference, Output>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Reference, Output> Eq for ClockDetails<Reference, Output>
where Reference: Eq, Output: Eq,

Source§

impl<Reference, Output> StructuralPartialEq for ClockDetails<Reference, Output>