Struct wayland_server::sources::Source
[−]
[src]
pub struct Source<E> { /* fields omitted */ }
A handle to an event source
This object is obtained as the result of methods on the LoopToken
object adding event sources to the event loop. And can be used to
interact with the event source afterwards, modifying (if applicable)
or destroying it.
Dropping this object will not remove the event source from the event
loop, you need to use the remove()
method for that.
Methods
impl<E> Source<E>
[src]
ⓘImportant traits for Box<W>pub fn remove(self) -> Box<Implementation<(), E>>
[src]
ⓘImportant traits for Box<W>
Remove this event source from the event loop
You are returned the implementation you provided for this event source at creation.
impl Source<FdEvent>
[src]
pub fn update_mask(&mut self, mask: FdInterest)
[src]
Change the registered interest for this FD
impl Source<TimerEvent>
[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).