Enum wayland_client::protocol::wl_display::Request [−][src]
pub enum Request { Sync { callback: Proxy<WlCallback>, }, GetRegistry { registry: Proxy<WlRegistry>, }, }
Variants
Sync
asynchronous roundtrip
The sync request asks the server to emit the 'done' event on the returned wl_callback object. Since requests are handled in-order and events are delivered in-order, this can be used as a barrier to ensure all previous requests and the resulting events have been handled.
The object returned by this request will be destroyed by the compositor after the callback is fired and as such the client must not attempt to use it after that point.
The callback_data passed in the callback is the event serial.
Fields of Sync
callback: Proxy<WlCallback> |
GetRegistry
get global registry object
This request creates a registry object that allows the client to list and bind the global objects available from the compositor.
Fields of GetRegistry
registry: Proxy<WlRegistry> |
Trait Implementations
impl MessageGroup for Request
[src]
impl MessageGroup for Request
const MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "sync", since: 1, signature: &[super::ArgumentType::NewId],}, super::MessageDesc{name: "get_registry", since: 1, signature: &[super::ArgumentType::NewId],}]
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