pub struct Clock { /* private fields */ }
Expand description
A monotonically increasing clock emulator.
We don’t use real time as it is incompatible with several embedded systesm.
Trait Implementations§
Source§impl TimeSource for Clock
impl TimeSource for Clock
Source§fn get_timestamp(&self) -> Timestamp
fn get_timestamp(&self) -> Timestamp
Returns the current time
Auto Trait Implementations§
impl !Freeze for Clock
impl !RefUnwindSafe for Clock
impl Send for Clock
impl !Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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