ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt: RequestConnection {
    // Provided methods
    fn xevie_query_version(
        &self,
        client_major_version: u16,
        client_minor_version: u16,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
    fn xevie_start(
        &self,
        screen: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, StartReply>, ConnectionError>> + Send + '_>> { ... }
    fn xevie_end(
        &self,
        cmap: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, EndReply>, ConnectionError>> + Send + '_>> { ... }
    fn xevie_send(
        &self,
        event: Event,
        data_type: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SendReply>, ConnectionError>> + Send + '_>> { ... }
    fn xevie_select_input(
        &self,
        event_mask: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SelectInputReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

fn xevie_query_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>

Source

fn xevie_start( &self, screen: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, StartReply>, ConnectionError>> + Send + '_>>

Source

fn xevie_end( &self, cmap: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, EndReply>, ConnectionError>> + Send + '_>>

Source

fn xevie_send( &self, event: Event, data_type: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SendReply>, ConnectionError>> + Send + '_>>

Source

fn xevie_select_input( &self, event_mask: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SelectInputReply>, 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.

Implementors§