Struct wayland_client::protocol::wl_display::WlDisplay [−][src]
pub struct WlDisplay(_);
Implementations
impl WlDisplay
[src][−]
pub fn sync(&self) -> Main<WlCallback>
[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.
pub fn get_registry(&self) -> Main<WlRegistry>
[src][−]
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.
It should be noted that the server side resources consumed in response to a get_registry request can only be released when the client disconnects, not when the client side proxy is destroyed. Therefore, clients should invoke get_registry as infrequently as possible to avoid wasting memory.
Trait Implementations
impl AsRef<Proxy<WlDisplay>> for WlDisplay
[src][+]
impl Clone for WlDisplay
[src][+]
impl Debug for WlDisplay
[src][+]
impl Eq for WlDisplay
[src]
impl From<Proxy<WlDisplay>> for WlDisplay
[src][+]
impl From<WlDisplay> for Proxy<WlDisplay>
[src][+]
impl Interface for WlDisplay
[src][+]
impl PartialEq<WlDisplay> for WlDisplay
[src][+]
impl StructuralEq for WlDisplay
[src]
impl StructuralPartialEq for WlDisplay
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WlDisplay
impl Send for WlDisplay
impl Sync for WlDisplay
impl Unpin for WlDisplay
impl !UnwindSafe for WlDisplay
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,