pub struct SystemClock;Expand description
The real clock. Sleeping uses the Tokio timer, so it must run inside a Tokio runtime.
Trait Implementations§
Source§impl Clock for SystemClock
impl Clock for SystemClock
Source§fn wall_time(&self) -> SystemTime
fn wall_time(&self) -> SystemTime
The wall-clock time, used only to interpret a
Retry-After header that carries a date.Source§impl Clone for SystemClock
impl Clone for SystemClock
impl Copy for SystemClock
Source§impl Debug for SystemClock
impl Debug for SystemClock
Auto Trait Implementations§
impl Freeze for SystemClock
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnsafeUnpin for SystemClock
impl UnwindSafe for SystemClock
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