Trait wayland_client::Handler [] [src]

pub unsafe trait Handler<T: Proxy> {
    unsafe fn message(
        &mut self,
        evq: &mut EventQueueHandle,
        proxy: &T,
        opcode: u32,
        args: *const wl_argument
    ) -> Result<(), ()>; }

Generic handler trait

This trait is automatically implemented for objects that implement the appropriate interface-specific Handler traits. It represents the hability for a type to handle events directed to a given wayland interface.

For example, implementing wl_surface::Handler for you type will automatically provide it with an implementation of Handler<WlSurface> as well. This is the only correct way to implement this trait, and you should not attempt to implement it yourself.

Required Methods

Dispatch a message.

Implementors