pub trait ConnectionExt: RequestConnection {
// Provided methods
fn xc_misc_get_version(
&self,
client_major_version: u16,
client_minor_version: u16,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn xc_misc_get_xid_range(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetXIDRangeReply>, ConnectionError>> + Send + '_>> { ... }
fn xc_misc_get_xid_list(
&self,
count: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetXIDListReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn xc_misc_get_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>> + Send + '_>>
fn xc_misc_get_xid_range( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetXIDRangeReply>, ConnectionError>> + Send + '_>>
fn xc_misc_get_xid_list( &self, count: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetXIDListReply>, 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.