Struct diem_time_service::real::RealTimeService [−][src]
pub struct RealTimeService;Expand description
The real production tokio TimeService.
Note: RealTimeService is just a zero-sized type whose methods only delegate
to the respective [tokio::time] functions.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Query a monotonically nondecreasing clock. Returns an opaque type that
can only be compared to other Instants, i.e., this is a monotonic
relative time whereas now_unix_time is a
non-monotonic absolute time. Read more
Blocks the current thread until duration time has passed.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RealTimeService
impl Send for RealTimeService
impl Sync for RealTimeService
impl Unpin for RealTimeService
impl UnwindSafe for RealTimeService
Blanket Implementations
Mutably borrows from an owned value. Read more