pub struct EmbassyClock { /* private fields */ }Expand description
A clock with at maximum microsecond precision.
The actual precision depends on the tick rate configured for the underlying embassy_time clock.
To construct a clock, use EmbassyClock::default().
The clock is “started” when it is constructed.
§Limitations
The clock represents up to ~584542 years worth of time, after which it will roll over.
Trait Implementations§
Source§impl Clock for EmbassyClock
impl Clock for EmbassyClock
Source§impl Clone for EmbassyClock
impl Clone for EmbassyClock
Source§fn clone(&self) -> EmbassyClock
fn clone(&self) -> EmbassyClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmbassyClock
Source§impl Debug for EmbassyClock
impl Debug for EmbassyClock
Auto Trait Implementations§
impl Freeze for EmbassyClock
impl RefUnwindSafe for EmbassyClock
impl Send for EmbassyClock
impl Sync for EmbassyClock
impl Unpin for EmbassyClock
impl UnsafeUnpin for EmbassyClock
impl UnwindSafe for EmbassyClock
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