pub struct Timer<T> { /* fields omitted */ }
Expand description
A Timer event source
It generates events of type (T, TimerHandle<T>)
, providing you
an handle inside the event callback, allowing you to set new timeouts
as a response to a timeout being reached (for reccuring ticks for example).
Create a new timer with default parameters
Default time resolution is 100ms
Get an handle for this timer
The type of events generated by your source.
The return type of the user callback Read more
Register yourself to this poll instance Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.