pub trait ConnectionExt: RequestConnection {
// Provided methods
fn dri3_query_version(
&self,
major_version: u32,
minor_version: u32,
) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError> { ... }
fn dri3_open(
&self,
drawable: Drawable,
provider: u32,
) -> Result<CookieWithFds<'_, Self, OpenReply>, ConnectionError> { ... }
fn dri3_pixmap_from_buffer<A>(
&self,
pixmap: Pixmap,
drawable: Drawable,
size: u32,
width: u16,
height: u16,
stride: u16,
depth: u8,
bpp: u8,
pixmap_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<RawFdContainer> { ... }
fn dri3_buffer_from_pixmap(
&self,
pixmap: Pixmap,
) -> Result<CookieWithFds<'_, Self, BufferFromPixmapReply>, ConnectionError> { ... }
fn dri3_fence_from_fd<A>(
&self,
drawable: Drawable,
fence: u32,
initially_triggered: bool,
fence_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<RawFdContainer> { ... }
fn dri3_fd_from_fence(
&self,
drawable: Drawable,
fence: u32,
) -> Result<CookieWithFds<'_, Self, FDFromFenceReply>, ConnectionError> { ... }
fn dri3_get_supported_modifiers(
&self,
window: u32,
depth: u8,
bpp: u8,
) -> Result<Cookie<'_, Self, GetSupportedModifiersReply>, ConnectionError> { ... }
fn dri3_pixmap_from_buffers(
&self,
pixmap: Pixmap,
window: Window,
width: u16,
height: u16,
stride0: u32,
offset0: u32,
stride1: u32,
offset1: u32,
stride2: u32,
offset2: u32,
stride3: u32,
offset3: u32,
depth: u8,
bpp: u8,
modifier: u64,
buffers: Vec<RawFdContainer>,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn dri3_buffers_from_pixmap(
&self,
pixmap: Pixmap,
) -> Result<CookieWithFds<'_, Self, BuffersFromPixmapReply>, ConnectionError> { ... }
fn dri3_set_drm_device_in_use(
&self,
window: Window,
drm_major: u32,
drm_minor: u32,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn dri3_import_syncobj<A>(
&self,
syncobj: Syncobj,
drawable: Drawable,
syncobj_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<RawFdContainer> { ... }
fn dri3_free_syncobj(
&self,
syncobj: Syncobj,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn dri3_query_version( &self, major_version: u32, minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
fn dri3_open( &self, drawable: Drawable, provider: u32, ) -> Result<CookieWithFds<'_, Self, OpenReply>, ConnectionError>
fn dri3_pixmap_from_buffer<A>(
&self,
pixmap: Pixmap,
drawable: Drawable,
size: u32,
width: u16,
height: u16,
stride: u16,
depth: u8,
bpp: u8,
pixmap_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>where
A: Into<RawFdContainer>,
fn dri3_buffer_from_pixmap( &self, pixmap: Pixmap, ) -> Result<CookieWithFds<'_, Self, BufferFromPixmapReply>, ConnectionError>
fn dri3_fence_from_fd<A>(
&self,
drawable: Drawable,
fence: u32,
initially_triggered: bool,
fence_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>where
A: Into<RawFdContainer>,
fn dri3_fd_from_fence( &self, drawable: Drawable, fence: u32, ) -> Result<CookieWithFds<'_, Self, FDFromFenceReply>, ConnectionError>
fn dri3_get_supported_modifiers( &self, window: u32, depth: u8, bpp: u8, ) -> Result<Cookie<'_, Self, GetSupportedModifiersReply>, ConnectionError>
fn dri3_pixmap_from_buffers( &self, pixmap: Pixmap, window: Window, width: u16, height: u16, stride0: u32, offset0: u32, stride1: u32, offset1: u32, stride2: u32, offset2: u32, stride3: u32, offset3: u32, depth: u8, bpp: u8, modifier: u64, buffers: Vec<RawFdContainer>, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn dri3_buffers_from_pixmap( &self, pixmap: Pixmap, ) -> Result<CookieWithFds<'_, Self, BuffersFromPixmapReply>, ConnectionError>
fn dri3_set_drm_device_in_use( &self, window: Window, drm_major: u32, drm_minor: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn dri3_import_syncobj<A>(
&self,
syncobj: Syncobj,
drawable: Drawable,
syncobj_fd: A,
) -> Result<VoidCookie<'_, Self>, ConnectionError>where
A: Into<RawFdContainer>,
fn dri3_free_syncobj( &self, syncobj: Syncobj, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
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.