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
fn with_idata<F, R>(&mut self, evlh: &mut EventLoopHandle, f: F) -> R where
    F: FnOnce(&mut ID, &mut EventLoopHandle) -> R, 
F: FnOnce(&mut ID, &mut EventLoopHandle) -> R,
Access with the implementation data without removing it from the EventLoop
fn remove(self) -> ID
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
- impl<ID> EventSource<ID> for FdEventSource<ID>
- impl<ID> EventSource<ID> for TimerEventSource<ID>
- impl<ID> EventSource<ID> for SignalEventSource<ID>
- impl<ID> EventSource<ID> for IdleEventSource<ID>