pub trait ConnectionExt: RequestConnection {
// Provided methods
fn xvmc_query_version(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_list_surface_types(
&self,
port_id: Port,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListSurfaceTypesReply>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_create_context(
&self,
context_id: Context,
port_id: Port,
surface_id: Surface,
width: u16,
height: u16,
flags: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateContextReply>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_destroy_context(
&self,
context_id: Context,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_create_surface(
&self,
surface_id: Surface,
context_id: Context,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateSurfaceReply>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_destroy_surface(
&self,
surface_id: Surface,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_create_subpicture(
&self,
subpicture_id: Subpicture,
context: Context,
xvimage_id: u32,
width: u16,
height: u16,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateSubpictureReply>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_destroy_subpicture(
&self,
subpicture_id: Subpicture,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xvmc_list_subpicture_types(
&self,
port_id: Port,
surface_id: Surface,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListSubpictureTypesReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn xvmc_query_version( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn xvmc_list_surface_types( &self, port_id: Port, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListSurfaceTypesReply>, ConnectionError>> + Send + '_>>
fn xvmc_create_context( &self, context_id: Context, port_id: Port, surface_id: Surface, width: u16, height: u16, flags: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateContextReply>, ConnectionError>> + Send + '_>>
fn xvmc_destroy_context( &self, context_id: Context, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xvmc_create_surface( &self, surface_id: Surface, context_id: Context, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateSurfaceReply>, ConnectionError>> + Send + '_>>
fn xvmc_destroy_surface( &self, surface_id: Surface, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xvmc_create_subpicture( &self, subpicture_id: Subpicture, context: Context, xvimage_id: u32, width: u16, height: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, CreateSubpictureReply>, ConnectionError>> + Send + '_>>
fn xvmc_destroy_subpicture( &self, subpicture_id: Subpicture, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xvmc_list_subpicture_types( &self, port_id: Port, surface_id: Surface, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListSubpictureTypesReply>, 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.