pub struct RealClock { /* private fields */ }Expand description
A clock that operates with respect to real-clock time.
Trait Implementations§
Source§impl Clock for RealClock
impl Clock for RealClock
Source§fn ticks_elapsed(&self) -> u64
fn ticks_elapsed(&self) -> u64
Return the number of ticks since Clock was created.
§Panics
Function will panic if the number of ticks elapsed is greater than u64::MAX.
impl Copy for RealClock
Auto Trait Implementations§
impl Freeze for RealClock
impl RefUnwindSafe for RealClock
impl Send for RealClock
impl Sync for RealClock
impl Unpin for RealClock
impl UnwindSafe for RealClock
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