Expand description
Utilities for tracking time (Tokio re-exports).
Structs§
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with Duration.
- Interval
- Interval returned by intervalandinterval_at.
- Sleep
- Future returned by sleepandsleep_until.
- Timeout
- Future returned by timeoutandtimeout_at.
Functions§
- interval
- Creates new Intervalthat yields with interval ofperiod. The first tick completes immediately. The defaultMissedTickBehaviorisBurst, but this can be configured by callingset_missed_tick_behavior.
- interval_at 
- Creates new Intervalthat yields with interval ofperiodwith the first tick completing atstart. The defaultMissedTickBehaviorisBurst, but this can be configured by callingset_missed_tick_behavior.
- sleep
- Waits until durationhas elapsed.
- sleep_until 
- Waits until deadlineis reached.
- timeout
- Requires a Futureto complete before the specified duration has elapsed.