Available on crate feature
time only.Expand description
Utilities for tracking time.
Structs§
- Elapsed
- Error returned by
timeoutortimeout_at. - Interval
- Interval returned by
intervalandinterval_at
Functions§
- interval
- Creates new
Intervalthat yields with interval ofperiod. The first tick completes immediately. - interval_
at - Creates new
Intervalthat yields with interval ofperiodwith the first tick completing atstart. - sleep
- Waits until
durationhas elapsed. - sleep_
until - Waits until
deadlineis reached. - timeout
- Require a
Futureto complete before the specified duration has elapsed. - timeout_
at - Require a
Futureto complete before the specified instant in time.