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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Query the current unix timestamp as a Duration. Read more

Return a Future that waits until duration has passed. Read more

Blocks the current thread until duration time has passed.

Query the current unix timestamp in seconds. Read more

Return a Future that waits until the deadline. Read more

Creates a new Interval that yields with interval of period. The first tick completes immediately. An interval will tick indefinitely. Read more

Creates a new Interval that yields with interval of period. The first tick completes after the start deadline. An interval will tick indefinitely. Read more

Require a Future to complete before the specified duration has elapsed. Read more

Require a Future to complete before the deadline. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.