Struct wayland_server::sources::TimerEventSource [] [src]

pub struct TimerEventSource<ID> { /* fields omitted */ }

timer_event_source

A handle to a registered timer event source

Dropping this struct does not remove the event source, use the remove method for that.

Methods

impl<ID> TimerEventSource<ID>
[src]

[src]

Set the delay of this timer

The callback will be called during the next dispatch of the event loop after this time (in milliseconds) is elapsed.

Manually the delay to 0 stops the timer (the callback won't be called).

[src]

Remove this event source from its event loop