Skip to main content

ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt: RequestConnection {
Show 14 methods // Provided methods fn dri2_query_version( &self, major_version: u32, minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError> { ... } fn dri2_connect( &self, window: Window, driver_type: DriverType, ) -> Result<Cookie<'_, Self, ConnectReply>, ConnectionError> { ... } fn dri2_authenticate( &self, window: Window, magic: u32, ) -> Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError> { ... } fn dri2_create_drawable( &self, drawable: Drawable, ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_destroy_drawable( &self, drawable: Drawable, ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_get_buffers<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [u32], ) -> Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError> { ... } fn dri2_copy_region( &self, drawable: Drawable, region: u32, dest: u32, src: u32, ) -> Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError> { ... } fn dri2_get_buffers_with_format<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [AttachFormat], ) -> Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError> { ... } 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, ) -> Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError> { ... } fn dri2_get_msc( &self, drawable: Drawable, ) -> Result<Cookie<'_, Self, GetMSCReply>, ConnectionError> { ... } 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, ) -> Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError> { ... } fn dri2_wait_sbc( &self, drawable: Drawable, target_sbc_hi: u32, target_sbc_lo: u32, ) -> Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError> { ... } fn dri2_swap_interval( &self, drawable: Drawable, interval: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_get_param( &self, drawable: Drawable, param: u32, ) -> Result<Cookie<'_, Self, GetParamReply>, ConnectionError> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

fn dri2_query_version( &self, major_version: u32, minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source

fn dri2_connect( &self, window: Window, driver_type: DriverType, ) -> Result<Cookie<'_, Self, ConnectReply>, ConnectionError>

Source

fn dri2_authenticate( &self, window: Window, magic: u32, ) -> Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError>

Source

fn dri2_create_drawable( &self, drawable: Drawable, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source

fn dri2_destroy_drawable( &self, drawable: Drawable, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source

fn dri2_get_buffers<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [u32], ) -> Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError>

Source

fn dri2_copy_region( &self, drawable: Drawable, region: u32, dest: u32, src: u32, ) -> Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError>

Source

fn dri2_get_buffers_with_format<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [AttachFormat], ) -> Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError>

Source

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, ) -> Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError>

Source

fn dri2_get_msc( &self, drawable: Drawable, ) -> Result<Cookie<'_, Self, GetMSCReply>, ConnectionError>

Source

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, ) -> Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError>

Source

fn dri2_wait_sbc( &self, drawable: Drawable, target_sbc_hi: u32, target_sbc_lo: u32, ) -> Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError>

Source

fn dri2_swap_interval( &self, drawable: Drawable, interval: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source

fn dri2_get_param( &self, drawable: Drawable, param: u32, ) -> Result<Cookie<'_, Self, GetParamReply>, ConnectionError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§