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>
[src]

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]

[src]

Change the registered interest for this FD

impl Source<TimerEvent>
[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).

Trait Implementations

Auto Trait Implementations

impl<E> !Send for Source<E>

impl<E> !Sync for Source<E>