Type Alias UtcClockUpdate

Source
pub type UtcClockUpdate = ClockUpdate<BootTimeline, UtcTimeline>;
Expand description

An update for the UTC clock.

Aliased Type§

struct UtcClockUpdate { /* private fields */ }

Implementations

Source§

impl<R, O> ClockUpdate<R, O>
where R: Timeline, O: Timeline,

Source

pub fn builder() -> ClockUpdateBuilder<Null<R, O>, Null<R, O>, Null<R, O>, R, O>

Returns a new, empty, ClockUpdateBuilder.

Source

pub fn options(&self) -> u64

Returns a bitfield of options to pass to [sys::zx_clock_update] in conjunction with a zx_clock_update_args_v2_t generated from this ClockUpdate.

Trait Implementations

Source§

impl<Reference, Output> Debug for ClockUpdate<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<Val, Rate, Err, Ref, Out> From<ClockUpdateBuilder<Val, Rate, Err, Ref, Out>> for ClockUpdate<Ref, Out>
where Val: ValueState<ReferenceTimeline = Ref, OutputTimeline = Out>, Rate: RateState, Err: ErrorState, Ref: Timeline, Out: Timeline,

Source§

fn from( builder: ClockUpdateBuilder<Val, Rate, Err, Ref, Out>, ) -> ClockUpdate<Ref, Out>

Converts to this type from the input type.
Source§

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

Source§

fn eq(&self, other: &ClockUpdate<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 ClockUpdate<Reference, Output>
where Reference: Eq, Output: Eq,

Source§

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