[][src]Module calloop::timer

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

Timeout

An itentifier to cancel a timeout if necessary

Timer

A Timer event source

TimerHandle

An handle to a timer, used to set or cancel timeouts