[][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.

This implementation is based on mio_more::timer.

Structs

Timeout

A timeout, as returned by Timer::set_timeout.

Timer

A Timer event source

TimerHandle

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