pub trait ConnectionExt: RequestConnection {
Show 14 methods
// Provided methods
fn dri2_query_version(
&self,
major_version: u32,
minor_version: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_connect(
&self,
window: Window,
driver_type: DriverType,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ConnectReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_authenticate(
&self,
window: Window,
magic: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_create_drawable(
&self,
drawable: Drawable,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn dri2_destroy_drawable(
&self,
drawable: Drawable,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn dri2_get_buffers<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
count: u32,
attachments: &'input [u32],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn dri2_copy_region(
&self,
drawable: Drawable,
region: u32,
dest: u32,
src: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_get_buffers_with_format<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
count: u32,
attachments: &'input [AttachFormat],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn dri2_swap_buffers(
&self,
drawable: Drawable,
target_msc_hi: u32,
target_msc_lo: u32,
divisor_hi: u32,
divisor_lo: u32,
remainder_hi: u32,
remainder_lo: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_get_msc(
&self,
drawable: Drawable,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetMSCReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_wait_msc(
&self,
drawable: Drawable,
target_msc_hi: u32,
target_msc_lo: u32,
divisor_hi: u32,
divisor_lo: u32,
remainder_hi: u32,
remainder_lo: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_wait_sbc(
&self,
drawable: Drawable,
target_sbc_hi: u32,
target_sbc_lo: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError>> + Send + '_>> { ... }
fn dri2_swap_interval(
&self,
drawable: Drawable,
interval: u32,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn dri2_get_param(
&self,
drawable: Drawable,
param: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetParamReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn dri2_query_version( &self, major_version: u32, minor_version: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn dri2_connect( &self, window: Window, driver_type: DriverType, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ConnectReply>, ConnectionError>> + Send + '_>>
fn dri2_authenticate( &self, window: Window, magic: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError>> + Send + '_>>
fn dri2_create_drawable( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dri2_destroy_drawable( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dri2_get_buffers<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
count: u32,
attachments: &'input [u32],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn dri2_copy_region( &self, drawable: Drawable, region: u32, dest: u32, src: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError>> + Send + '_>>
fn dri2_get_buffers_with_format<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
count: u32,
attachments: &'input [AttachFormat],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn dri2_swap_buffers( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError>> + Send + '_>>
fn dri2_get_msc( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetMSCReply>, ConnectionError>> + Send + '_>>
fn dri2_wait_msc( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError>> + Send + '_>>
fn dri2_wait_sbc( &self, drawable: Drawable, target_sbc_hi: u32, target_sbc_lo: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError>> + Send + '_>>
fn dri2_swap_interval( &self, drawable: Drawable, interval: u32, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dri2_get_param( &self, drawable: Drawable, param: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetParamReply>, ConnectionError>> + Send + '_>>
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.