pub struct Latch(/* private fields */);Available on
gb_pak_rtc and crate feature pak only.Expand description
One snapshot of the clock.
Reading a field is a register select and a load. They all come from the same snapshot, so an hour and a minute cannot be a tick apart.
Implementations§
Source§impl Latch
impl Latch
Sourcepub fn overflowed(&self) -> bool
pub fn overflowed(&self) -> bool
The day counter has wrapped at least once. Stays set until
clear_overflow.
Auto Trait Implementations§
impl BankSafe for Latch
impl Freeze for Latch
impl RefUnwindSafe for Latch
impl Send for Latch
impl Sync for Latch
impl Unpin for Latch
impl UnsafeUnpin for Latch
impl UnwindSafe for Latch
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