Available on crate feature
time
only.Expand description
Utilities for tracking time.
Structs§
- Elapsed
- Error returned by
timeout
ortimeout_at
. - Interval
- Interval returned by
interval
andinterval_at
Functions§
- interval
- Creates new
Interval
that yields with interval ofperiod
. The first tick completes immediately. - interval_
at - Creates new
Interval
that yields with interval ofperiod
with the first tick completing atstart
. - sleep
- Waits until
duration
has elapsed. - sleep_
until - Waits until
deadline
is reached. - timeout
- Require a
Future
to complete before the specified duration has elapsed. - timeout_
at - Require a
Future
to complete before the specified instant in time.