Struct wayland_client::protocol::wl_display::WlDisplay [] [src]

pub struct WlDisplay { /* fields omitted */ }

Methods

impl WlDisplay
[src]

Non-blocking write to the server

Will write as many pending requests as possible to the server socket. Never blocks: if not all requests coul be written, will return an io error WouldBlock.

On success returns the number of written requests.

Create a new EventQueue

No object is by default attached to it.

Get the last error that occured on the session

Such errors are fatal, meaning that if this function does not return None, your session is not usable any longer.

As such, this function mostly provide diagnistics information. You can have a hint an error might have been generated if I/O methods of EventQueue start returning errors.

Get the raw File Descriptor associated with the connection

This is provided to be used in conjunction with some polling mecanism, if you want to manually control the flow with something like epoll. In this case, you'll most likely want to use EventQueue::prepare_read() and EventQueue::dispatch_pending() rather than EventQueue::dispatch().

Reading or writing anything to this FD will corrupt the internal state of the lib.

impl WlDisplay
[src]

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.

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.

Trait Implementations

impl Drop for WlDisplay
[src]

A method called when the value goes out of scope. Read more

impl Send for WlDisplay
[src]

impl Sync for WlDisplay
[src]

impl Proxy for WlDisplay
[src]

Pointer to the underlying wayland proxy object

Create an instance from a wayland pointer Read more

Create an instance from a wayland pointer Read more

Pointer to the interface representation

Internal wayland name of this interface

Max version of this interface supported

Current version of the interface this proxy is instanciated with

Check if the proxt behind this handle is actually still alive

Check of two handles are actually the same wayland object Read more

Set a pointer associated as user data on this proxy Read more

Get the pointer associated as user data on this proxy Read more