pub struct NoClock;Expand description
A node with no real-time clock.
Trait Implementations§
Source§impl Clock for NoClock
impl Clock for NoClock
Source§fn utc(&self) -> Option<u64>
fn utc(&self) -> Option<u64>
Microseconds since the Matter epoch — 2000-01-01 00:00:00 UTC — or
None when the
node does not know the time.Source§fn set_utc(&self, _micros: u64) -> Result<()>
fn set_utc(&self, _micros: u64) -> Result<()>
Sets the current time, if the platform can. A node that cannot returns
Err(ErrorCode::Platform); the Time Synchronization cluster reports that honestly
rather than pretending the write worked.Source§fn granularity(&self) -> Granularity
fn granularity(&self) -> Granularity
How precise
Clock::utc is, as the Time Synchronization cluster’s
Granularity enumeration.impl Copy for NoClock
Auto Trait Implementations§
impl Forget for NoClock
impl Freeze for NoClock
impl Move for NoClock
impl RefUnwindSafe for NoClock
impl Send for NoClock
impl Sync for NoClock
impl Unpin for NoClock
impl UnsafeUnpin for NoClock
impl UnwindSafe for NoClock
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