ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt: RequestConnection {
    // Provided methods
    fn shape_query_version(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
    fn shape_rectangles<'c, 'input, 'future>(
        &'c self,
        operation: SO,
        destination_kind: SK,
        ordering: ClipOrdering,
        destination_window: Window,
        x_offset: i16,
        y_offset: i16,
        rectangles: &'input [Rectangle],
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
       where 'c: 'future,
             'input: 'future { ... }
    fn shape_mask<A>(
        &self,
        operation: SO,
        destination_kind: SK,
        destination_window: Window,
        x_offset: i16,
        y_offset: i16,
        source_bitmap: A,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
       where A: Into<Pixmap> + Send + 'static { ... }
    fn shape_combine(
        &self,
        operation: SO,
        destination_kind: SK,
        source_kind: SK,
        destination_window: Window,
        x_offset: i16,
        y_offset: i16,
        source_window: Window,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn shape_offset(
        &self,
        destination_kind: SK,
        destination_window: Window,
        x_offset: i16,
        y_offset: i16,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn shape_query_extents(
        &self,
        destination_window: Window,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryExtentsReply>, ConnectionError>> + Send + '_>> { ... }
    fn shape_select_input(
        &self,
        destination_window: Window,
        enable: bool,
    ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
    fn shape_input_selected(
        &self,
        destination_window: Window,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, InputSelectedReply>, ConnectionError>> + Send + '_>> { ... }
    fn shape_get_rectangles(
        &self,
        window: Window,
        source_kind: SK,
    ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetRectanglesReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

Source

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

Source

fn shape_rectangles<'c, 'input, 'future>( &'c self, operation: SO, destination_kind: SK, ordering: ClipOrdering, destination_window: Window, x_offset: i16, y_offset: i16, rectangles: &'input [Rectangle], ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future, 'input: 'future,

Source

fn shape_mask<A>( &self, operation: SO, destination_kind: SK, destination_window: Window, x_offset: i16, y_offset: i16, source_bitmap: A, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
where A: Into<Pixmap> + Send + 'static,

Source

fn shape_combine( &self, operation: SO, destination_kind: SK, source_kind: SK, destination_window: Window, x_offset: i16, y_offset: i16, source_window: Window, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn shape_offset( &self, destination_kind: SK, destination_window: Window, x_offset: i16, y_offset: i16, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn shape_query_extents( &self, destination_window: Window, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryExtentsReply>, ConnectionError>> + Send + '_>>

Source

fn shape_select_input( &self, destination_window: Window, enable: bool, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>

Source

fn shape_input_selected( &self, destination_window: Window, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, InputSelectedReply>, ConnectionError>> + Send + '_>>

Source

fn shape_get_rectangles( &self, window: Window, source_kind: SK, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetRectanglesReply>, 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§