pub struct UtcClock;Expand description
UTC clock.
Granularity is in milliseconds.
Trait Implementations§
Source§impl ClockSource for UtcClock
impl ClockSource for UtcClock
Source§fn current_timestamp(&self) -> i64
fn current_timestamp(&self) -> i64
The current timestamp in milliseconds since the Unix epoch.
Auto Trait Implementations§
impl Freeze for UtcClock
impl RefUnwindSafe for UtcClock
impl Send for UtcClock
impl Sync for UtcClock
impl Unpin for UtcClock
impl UnwindSafe for UtcClock
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