Struct EmbassyClock
pub struct EmbassyClock;Expand description
Monotonic clock backed by embassy-time.
Re-exported from umsh-hal so host and embedded targets share one
implementation, including an efficient poll_delay_until that registers a
real embassy timer rather than busy-polling.
Monotonic Clock backed by the global embassy-time driver.
Zero-sized: shares the global driver. Clone freely.
Trait Implementations§
§impl Clock for EmbassyClock
impl Clock for EmbassyClock
§impl Clone for EmbassyClock
impl Clone for EmbassyClock
§fn clone(&self) -> EmbassyClock
fn clone(&self) -> EmbassyClock
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EmbassyClock
impl Debug for EmbassyClock
§impl Default for EmbassyClock
impl Default for EmbassyClock
§fn default() -> EmbassyClock
fn default() -> EmbassyClock
Returns the “default value” for a type. Read more
impl Copy 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 UnwindSafe for EmbassyClock
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)