Structs§
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration
. - TcpStream
- A TCP stream between a local and a remote socket.
- Tokio
Join Handle
Enums§
- Missed
Tick Behavior - Defines the behavior of an
Interval
when it misses a tick.
Traits§
- Stream
- A stream of values produced asynchronously.
Functions§
- interval
- Creates new
Interval
that yields with interval ofperiod
. The first tick completes immediately. The defaultMissedTickBehavior
isBurst
, but this can be configured by callingset_missed_tick_behavior
. - sleep
- Waits until
duration
has elapsed. - spawn
- timeout
- Requires a
Future
to complete before the specified duration has elapsed.