Struct calloop::timer::Timer[][src]

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).

Implementations

Create a new timer

Get an handle for this timer

Trait Implementations

Formats the value using the given formatter. Read more

The type of events generated by your source.

Some metadata of your event source Read more

The return type of the user callback Read more

Process any relevant events Read more

Register yourself to this poll instance Read more

Re-register your file descriptors Read more

Unregister your file descriptors Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.