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]
fn set_delay_ms(&mut self, delay: i32)
[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).
fn remove(self)
[src]
Remove this event source from its event loop