pub trait ProvidesRegistryState: Sized {
// Required methods
fn registry(&mut self) -> &mut RegistryState;
fn runtime_add_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str,
version: u32
);
fn runtime_remove_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str
);
}
Expand description
Trait which asserts a data type may provide a mutable reference to the registry state.
Typically this trait will be required by delegates or RegistryHandler
implementations which need
to access the registry utilities provided by Smithay’s client toolkit.
Required Methods§
sourcefn registry(&mut self) -> &mut RegistryState
fn registry(&mut self) -> &mut RegistryState
Returns a mutable reference to the registry state.
sourcefn runtime_add_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str,
version: u32
)
fn runtime_add_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, version: u32 )
Called when a new global has been advertised by the compositor.
This is not called during initial global enumeration.
sourcefn runtime_remove_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str
)
fn runtime_remove_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str )
Called when a global has been destroyed by the compositor.
Object Safety§
This trait is not object safe.