Struct async_speed_limit::clock::StandardClock[][src]

pub struct StandardClock;
Expand description

The physical clock using std::time::Instant.

The sleeping future is based on futures-timer. Blocking sleep uses std::thread::sleep().

Trait Implementations

Sleeps and blocks the current thread for the given duration.

Type to represent a point of time. Read more

Future type returned by sleep().

Returns the current time instant. It should be monotonically increasing, but not necessarily high-precision or steady. Read more

Asynchronously sleeps the current task for the given duration. Read more

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

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.