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.
Returns the current time instant. It should be monotonically increasing, but not necessarily high-precision or steady. Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StandardClock
impl Send for StandardClock
impl Sync for StandardClock
impl Unpin for StandardClock
impl UnwindSafe for StandardClock
Blanket Implementations
Mutably borrows from an owned value. Read more