pub trait ConnectionExt: RequestConnection {
// Provided methods
fn present_query_version(
&self,
major_version: u32,
minor_version: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn present_pixmap<'c, 'input, 'future>(
&'c self,
window: Window,
pixmap: Pixmap,
serial: u32,
valid: Region,
update: Region,
x_off: i16,
y_off: i16,
target_crtc: Crtc,
wait_fence: Fence,
idle_fence: Fence,
options: u32,
target_msc: u64,
divisor: u64,
remainder: u64,
notifies: &'input [Notify],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn present_notify_msc(
&self,
window: Window,
serial: u32,
target_msc: u64,
divisor: u64,
remainder: u64,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn present_select_input(
&self,
eid: Event,
window: Window,
event_mask: EventMask,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn present_query_capabilities(
&self,
target: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryCapabilitiesReply>, ConnectionError>> + Send + '_>> { ... }
fn present_pixmap_synced<'c, 'input, 'future>(
&'c self,
window: Window,
pixmap: Pixmap,
serial: u32,
valid: Region,
update: Region,
x_off: i16,
y_off: i16,
target_crtc: Crtc,
acquire_syncobj: Syncobj,
release_syncobj: Syncobj,
acquire_point: u64,
release_point: u64,
options: u32,
target_msc: u64,
divisor: u64,
remainder: u64,
notifies: &'input [Notify],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
}Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn present_query_version( &self, major_version: u32, minor_version: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn present_pixmap<'c, 'input, 'future>(
&'c self,
window: Window,
pixmap: Pixmap,
serial: u32,
valid: Region,
update: Region,
x_off: i16,
y_off: i16,
target_crtc: Crtc,
wait_fence: Fence,
idle_fence: Fence,
options: u32,
target_msc: u64,
divisor: u64,
remainder: u64,
notifies: &'input [Notify],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn present_notify_msc( &self, window: Window, serial: u32, target_msc: u64, divisor: u64, remainder: u64, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn present_select_input( &self, eid: Event, window: Window, event_mask: EventMask, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn present_query_capabilities( &self, target: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryCapabilitiesReply>, ConnectionError>> + Send + '_>>
fn present_pixmap_synced<'c, 'input, 'future>(
&'c self,
window: Window,
pixmap: Pixmap,
serial: u32,
valid: Region,
update: Region,
x_off: i16,
y_off: i16,
target_crtc: Crtc,
acquire_syncobj: Syncobj,
release_syncobj: Syncobj,
acquire_point: u64,
release_point: u64,
options: u32,
target_msc: u64,
divisor: u64,
remainder: u64,
notifies: &'input [Notify],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.