Module calloop::timer [−][src]
Expand description
Timer-based event sources
A Timer<T>
is a general time-tracking object. It is used by setting timeouts,
and generates events whenever a timeout expires.
The Timer<T>
event source provides an handle TimerHandle<T>
, which is used
to set or cancel timeouts. This handle is cloneable and can be send accross threads
if T: Send
, allowing you to setup timeouts from any point of your program.
Structs
An itentifier to cancel a timeout if necessary
A Timer event source
An handle to a timer, used to set or cancel timeouts