pub struct RtcReader<'d> { /* private fields */ }Expand description
Reads the current date and time of the RTC.
Get one with Rtc::reader. It can be cloned and sent to other tasks, which can then read the
time while the Rtc is used to set it.
Implementations§
Source§impl<'d> RtcReader<'d>
impl<'d> RtcReader<'d>
Sourcepub fn read_raw(&self) -> RawDateTime
pub fn read_raw(&self) -> RawDateTime
Read the raw contents of the RTC calendar registers.
See RawDateTime: the values are not validated.
Trait Implementations§
Auto Trait Implementations§
impl<'d> Forget for RtcReader<'d>
impl<'d> Freeze for RtcReader<'d>
impl<'d> Move for RtcReader<'d>
impl<'d> RefUnwindSafe for RtcReader<'d>
impl<'d> Send for RtcReader<'d>
impl<'d> Sync for RtcReader<'d>
impl<'d> Unpin for RtcReader<'d>
impl<'d> UnsafeUnpin for RtcReader<'d>
impl<'d> UnwindSafe for RtcReader<'d>
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