Enum wayland_client::protocol::wl_registry::Event [−][src]
pub enum Event { Global { name: u32, interface: String, version: u32, }, GlobalRemove { name: u32, }, }
Variants
Global
announce global object
Notify the client of global objects.
The event notifies the client that a global object with the given name is now available, and it implements the given version of the given interface.
Fields of Global
name: u32 | |
interface: String | |
version: u32 |
GlobalRemove
announce removal of global object
Notify the client of removed global objects.
This event notifies the client that the global identified by name is no longer available. If the client bound to the global using the bind request, the client should now destroy that object.
The object remains valid and requests to the object will be ignored until the client destroys it, to avoid races between the global going away and a client sending a request to it.
Fields of GlobalRemove
name: u32 |
Trait Implementations
impl MessageGroup for Event
[src]
impl MessageGroup for Event
const MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "global", since: 1, signature: &[super::ArgumentType::Uint, super::ArgumentType::Str, super::ArgumentType::Uint],}, super::MessageDesc{name: "global_remove", since: 1, signature: &[super::ArgumentType::Uint],}]
Wire representation of this MessageGroup
type Map = ProxyMap
fn is_destructor(&self) -> bool
[src]
fn is_destructor(&self) -> bool
Whether this message is a destructor Read more
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
[src]
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
Retrieve the child Object
associated with this message if any
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
[src]
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
Construct a message from its raw representation
fn into_raw(self, sender_id: u32) -> Message
[src]
fn into_raw(self, sender_id: u32) -> Message
Turn this message into its raw representation