Skip to main content

Module timer

Module timer 

Source

Structs§

Interval
A stream that emits timed events.
IntervalAfter
A stream that emits timed events.
IntervalError
Oneshot
A future that emits an event at the given time.
OneshotAfter
A future that emits an event at the given time.

Functions§

after
Creates a timer that emits an event once no sooner than the given time instant.
at
Creates a timer that emits an event once at the given time instant.
delay_for
Creates a timer that emits an event once after the given delay.
delay_for_at_least
Creates a timer that emits an event once after the given delay.
interval
Creates a timer that emits events periodically, starting as soon as possible.
interval_after_at_least
Creates a timer that emits events periodically, starting at start.
interval_at
Creates a timer that emits events periodically, starting at start.
interval_at_least
Creates a timer that emits events periodically, starting as soon as possible.
interval_delayed_by
Creates a timer that emits events periodically, starting after delay.
interval_delayed_by_at_least
Creates a timer that emits events periodically, starting after at least delay.