pub trait ConnectionExt: RequestConnection {
// Provided methods
fn res_query_version(
&self,
client_major: u8,
client_minor: u8,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn res_query_clients(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientsReply>, ConnectionError>> + Send + '_>> { ... }
fn res_query_client_resources(
&self,
xid: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientResourcesReply>, ConnectionError>> + Send + '_>> { ... }
fn res_query_client_pixmap_bytes(
&self,
xid: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientPixmapBytesReply>, ConnectionError>> + Send + '_>> { ... }
fn res_query_client_ids<'c, 'input, 'future>(
&'c self,
specs: &'input [ClientIdSpec],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryClientIdsReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn res_query_resource_bytes<'c, 'input, 'future>(
&'c self,
client: u32,
specs: &'input [ResourceIdSpec],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryResourceBytesReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn res_query_version( &self, client_major: u8, client_minor: u8, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn res_query_clients( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientsReply>, ConnectionError>> + Send + '_>>
fn res_query_client_resources( &self, xid: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientResourcesReply>, ConnectionError>> + Send + '_>>
fn res_query_client_pixmap_bytes( &self, xid: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryClientPixmapBytesReply>, ConnectionError>> + Send + '_>>
fn res_query_client_ids<'c, 'input, 'future>(
&'c self,
specs: &'input [ClientIdSpec],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryClientIdsReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn res_query_resource_bytes<'c, 'input, 'future>(
&'c self,
client: u32,
specs: &'input [ResourceIdSpec],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryResourceBytesReply>, 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.