pub struct WlRegistry { /* private fields */ }Expand description
global registry object
The singleton global registry object. The server has a number of global objects that are available to all clients. These objects typically represent an actual object in the server (for example, an input device) or they are singleton objects that provide extension functionality.
When a client creates a registry object, the registry object will emit a global event for each global currently in the registry. Globals come and go as a result of device or monitor hotplugs, reconfiguration or other events, and the registry will send out global and global_remove events to keep the client up to date with the changes. To mark the end of the initial burst of events, the client can use the wl_display.sync request immediately after calling wl_display.get_registry.
A client can bind to a global object by using the bind request. This creates a client-side handle that lets the object emit events to the client and lets the client invoke requests on the object.
See also the Event enum for this interface.
Implementations§
Source§impl WlRegistry
impl WlRegistry
Trait Implementations§
Source§impl Borrow<ObjectId> for WlRegistry
impl Borrow<ObjectId> for WlRegistry
Source§impl Clone for WlRegistry
impl Clone for WlRegistry
Source§fn clone(&self) -> WlRegistry
fn clone(&self) -> WlRegistry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WlRegistry
impl Debug for WlRegistry
Source§impl<D> Dispatch<WlRegistry, D> for GlobalListContentswhere
D: GlobalListHandler,
impl<D> Dispatch<WlRegistry, D> for GlobalListContentswhere
D: GlobalListHandler,
Source§fn event(
&self,
state: &mut D,
registry: &WlRegistry,
event: Event,
conn: &Connection,
qh: &QueueHandle<D>,
)
fn event( &self, state: &mut D, registry: &WlRegistry, event: Event, conn: &Connection, qh: &QueueHandle<D>, )
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Source§impl Hash for WlRegistry
impl Hash for WlRegistry
Source§impl PartialEq<Weak<WlRegistry>> for WlRegistry
impl PartialEq<Weak<WlRegistry>> for WlRegistry
Source§impl PartialEq for WlRegistry
impl PartialEq for WlRegistry
Source§fn eq(&self, other: &WlRegistry) -> bool
fn eq(&self, other: &WlRegistry) -> bool
self and other values to be equal, and is used by ==.