pub trait GlobalHandler<I: Interface> {
    // Required methods
    fn created(
        &mut self,
        registry: Attached<WlRegistry>,
        id: u32,
        version: u32,
        ddata: DispatchData<'_>
    );
    fn get(&self) -> Option<Attached<I>>;
}
Expand description

Required trait for implementing a handler for “single” globals

Required Methods§

source

fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )

This global was created and signaled in the registry with given id and version

source

fn get(&self) -> Option<Attached<I>>

Access the global if it was signaled

Implementors§