pub fn sync(&self,) -> WlCallback {
        let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), WL_DISPLAY_SYNC, &wl_callback_interface as *const wl_interface
           , ptr::null_mut::<wl_proxy>()) };
        let mut proxy: WlCallback = unsafe { Proxy::from_ptr(ptr) };
        let evt_iter = eventiter_from_internals(self.evq.clone());
        proxy.set_evt_iterator(&evt_iter);
        ::std::mem::forget(evt_iter); // Don't run the destructor !
        proxy
    }
/// 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.
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.
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 sync(&self,) -> WlCallback {
        let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), WL_DISPLAY_SYNC, &wl_callback_interface as *const wl_interface
           , ptr::null_mut::<wl_proxy>()) };
        let mut proxy: WlCallback = unsafe { Proxy::from_ptr(ptr) };
        let evt_iter = eventiter_from_internals(self.evq.clone());
        proxy.set_evt_iterator(&evt_iter);
        ::std::mem::forget(evt_iter); // Don't run the destructor !
        proxy
    }
pub fn sync ( & self , ) -> WlCallback { let ptr = unsafe { ffi_dispatch ! ( WAYLAND_CLIENT_HANDLE wl_proxy_marshal_constructor self ptr ( ) WL_DISPLAY_SYNC wl_callback_interface as const wl_interface ptr null_mut wl_proxy ( ) ) } ; let mut proxy : WlCallback = unsafe { Proxy :: from_ptr ( ptr ) } ; let evt_iter = eventiter_from_internals ( self . evq . clone ( ) ) ; proxy . set_evt_iterator ( & evt_iter ) ; :: std :: mem :: forget ( evt_iter ) ; // Don't run the destructor ! proxy }
asynchronous roundtrip
The sync request asks the server to emit the 'done' event
on the returned wl_callback object.
asynchronous roundtrip The sync request asks the server to emit the ' done ' event on the returned wl_callback object .
&self
&self