[−][src]Struct wayland_client::protocol::wl_display::WlDisplay
Methods
impl WlDisplay
[src]
pub fn sync<F>(&self, implementor: F) -> Result<WlCallback, ()> where
F: FnOnce(NewProxy<WlCallback>) -> WlCallback,
[src]
F: FnOnce(NewProxy<WlCallback>) -> WlCallback,
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<F>(&self, implementor: F) -> Result<WlRegistry, ()> where
F: FnOnce(NewProxy<WlRegistry>) -> WlRegistry,
[src]
F: FnOnce(NewProxy<WlRegistry>) -> WlRegistry,
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<T: EventHandler> HandledBy<T> for WlDisplay
[src]
impl AsRef<Proxy<WlDisplay>> for WlDisplay
[src]
impl Eq for WlDisplay
[src]
impl Clone for WlDisplay
[src]
impl PartialEq<WlDisplay> for WlDisplay
[src]
impl From<Proxy<WlDisplay>> for WlDisplay
[src]
impl From<WlDisplay> for Proxy<WlDisplay>
[src]
impl Interface for WlDisplay
[src]
Auto Trait Implementations
impl Unpin for WlDisplay
impl Sync for WlDisplay
impl Send for WlDisplay
impl !UnwindSafe for WlDisplay
impl !RefUnwindSafe for WlDisplay
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,