Trait wayland_server::Init [] [src]

pub trait Init {
    fn init(&mut self, evqh: &mut EventLoopHandle, index: usize);
}

A trait to initialize handlers after they've been inserted in an event queue

Works with the add_handler_with_init method of EventQueueHandle.

Required Methods

Init the handler

index is the current index of the handler in the event queue (you can use it to register objects to it)

Implementors