Trait wayland_server::sources::EventSource [] [src]

pub trait EventSource<ID> {
    fn with_idata<F, R>(&mut self, evlh: &mut EventLoopHandle, f: F) -> R
    where
        F: FnOnce(&mut ID, &mut EventLoopHandle) -> R
;
fn remove(self) -> ID; }

Common functions of all event sources

Required Methods

Access with the implementation data without removing it from the EventLoop

Remove this event source from its event loop

Any outstanding calls will be cancelled.

Returns the implementation data in case you have something to do with it.

Implementors