Expand description
Definitions for SleepProviderExt
and related types.
Structs§
- Sleep
Until Wallclock - A future implementing
SleepProviderExt::sleep_until_wallclock
. - Timeout
- A timeout returned by
SleepProviderExt::timeout
. - Timeout
Error - An error value given when a function times out.
Constants§
- MAX_
SLEEP 🔒 - We never sleep more than this much, in case our system clock jumps.
Traits§
- Sleep
Provider Ext - An extension trait on
SleepProvider
for timeouts and clock delays.
Functions§
- calc_
next_ 🔒delay - Return the amount of time we should wait next, when running sleep_until_wallclock(). Also return a boolean indicating whether we expect this to be the final delay.