pub struct TokioKernelClock;Expand description
Production clock backed by system UTC and Tokio deadlines.
Trait Implementations§
Source§impl Clone for TokioKernelClock
impl Clone for TokioKernelClock
impl Copy for TokioKernelClock
Source§impl Debug for TokioKernelClock
impl Debug for TokioKernelClock
Source§impl Default for TokioKernelClock
impl Default for TokioKernelClock
Source§impl KernelClock for TokioKernelClock
impl KernelClock for TokioKernelClock
Source§fn now(&self) -> Result<ProtocolTimestamp, KernelError>
fn now(&self) -> Result<ProtocolTimestamp, KernelError>
Returns the current caller-visible protocol timestamp. Read more
Source§fn sleep_until(&self, deadline: ProtocolTimestamp) -> KernelDeadlineFuture<'_>
fn sleep_until(&self, deadline: ProtocolTimestamp) -> KernelDeadlineFuture<'_>
Completes when the supplied canonical deadline is reached.
Auto Trait Implementations§
impl Freeze for TokioKernelClock
impl RefUnwindSafe for TokioKernelClock
impl Send for TokioKernelClock
impl Sync for TokioKernelClock
impl Unpin for TokioKernelClock
impl UnsafeUnpin for TokioKernelClock
impl UnwindSafe for TokioKernelClock
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