[][src]Trait wayland_client::GlobalImplementor

pub trait GlobalImplementor<I: Interface> {
    fn new_global(&mut self, global: NewProxy<I>) -> Proxy<I>;

    fn error(&mut self, _version: u32) { ... }
}

A trait for implementation of the global advertisement

It is automatically implemented for FnMut(NewProxy<I>) -> Proxy<I> closures, in which case the error messages are ignored.

Required methods

fn new_global(&mut self, global: NewProxy<I>) -> Proxy<I>

A new global of given interface has been instantiated and you are supposed to provide an implementation for it.

Loading content...

Provided methods

fn error(&mut self, _version: u32)

A global was advertised but its version was lower than the minimal version you requested.

The advertised version is provided as argument.

Loading content...

Implementors

impl<F, I: Interface> GlobalImplementor<I> for F where
    F: FnMut(NewProxy<I>) -> Proxy<I>, 
[src]

fn error(&mut self, _version: u32)[src]

Loading content...