pub enum Update {
Set,
Stepped {
previous: u32,
},
Unchanged,
Refused,
}Expand description
What WallClockState::apply did.
Variants§
Set
The device went from not knowing the time to knowing it. Always worth acting on: it is the transition that lets a display start showing a clock.
Stepped
The clock moved by at least NOTABLE_STEP_SECS.
Unchanged
The clock was already this time, near enough. Applied, but not worth announcing or persisting.
Refused
Nothing changed: the source is not trusted, or a restore arrived at a clock that was already set.
Implementations§
Trait Implementations§
impl Copy for Update
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)