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]
pub 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).
Trait Implementations
impl<ID> EventSource<ID> for TimerEventSource<ID>[src]
fn with_idata<F, R>(&mut self, evlh: &mut EventLoopHandle, f: F) -> R where
F: FnOnce(&mut ID, &mut EventLoopHandle) -> R, [src]
F: FnOnce(&mut ID, &mut EventLoopHandle) -> R,
Access with the implementation data without removing it from the EventLoop
fn remove(self) -> ID[src]
Remove this event source from its event loop Read more