ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt: RequestConnection {
    // Provided methods
    fn screensaver_query_version(
        &self,
        client_major_version: u8,
        client_minor_version: u8,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
    fn screensaver_query_info(
        &self,
        drawable: Drawable,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryInfoReply>, ConnectionError>> + Send + '_>> { ... }
    fn screensaver_select_input(
        &self,
        drawable: Drawable,
        event_mask: Event,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn screensaver_set_attributes<'c, 'input, 'future>(
        &'c self,
        drawable: Drawable,
        x: i16,
        y: i16,
        width: u16,
        height: u16,
        border_width: u16,
        class: WindowClass,
        depth: u8,
        visual: Visualid,
        value_list: &'input SetAttributesAux,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
       where 'c: 'future,
             'input: 'future { ... }
    fn screensaver_unset_attributes(
        &self,
        drawable: Drawable,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn screensaver_suspend(
        &self,
        suspend: u32,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

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

Source

fn screensaver_query_info( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryInfoReply>, ConnectionError>> + Send + '_>>

Source

fn screensaver_select_input( &self, drawable: Drawable, event_mask: Event, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn screensaver_set_attributes<'c, 'input, 'future>( &'c self, drawable: Drawable, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, depth: u8, visual: Visualid, value_list: &'input SetAttributesAux, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future, 'input: 'future,

Source

fn screensaver_unset_attributes( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn screensaver_suspend( &self, suspend: u32, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, 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§