pub trait ConnectionExt: RequestConnection {
Show 31 methods
// Provided methods
fn render_query_version(
&self,
client_major_version: u32,
client_minor_version: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn render_query_pict_formats(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPictFormatsReply>, ConnectionError>> + Send + '_>> { ... }
fn render_query_pict_index_values(
&self,
format: Pictformat,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPictIndexValuesReply>, ConnectionError>> + Send + '_>> { ... }
fn render_create_picture<'c, 'input, 'future>(
&'c self,
pid: Picture,
drawable: Drawable,
format: Pictformat,
value_list: &'input CreatePictureAux,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_change_picture<'c, 'input, 'future>(
&'c self,
picture: Picture,
value_list: &'input ChangePictureAux,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_set_picture_clip_rectangles<'c, 'input, 'future>(
&'c self,
picture: Picture,
clip_x_origin: i16,
clip_y_origin: i16,
rectangles: &'input [Rectangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_free_picture(
&self,
picture: Picture,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_composite<A>(
&self,
op: PictOp,
src: Picture,
mask: A,
dst: Picture,
src_x: i16,
src_y: i16,
mask_x: i16,
mask_y: i16,
dst_x: i16,
dst_y: i16,
width: u16,
height: u16,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
where A: Into<Picture> + Send + 'static { ... }
fn render_trapezoids<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
traps: &'input [Trapezoid],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_triangles<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
triangles: &'input [Triangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_tri_strip<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
points: &'input [Pointfix],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_tri_fan<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
points: &'input [Pointfix],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_glyph_set(
&self,
gsid: Glyphset,
format: Pictformat,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_reference_glyph_set(
&self,
gsid: Glyphset,
existing: Glyphset,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_free_glyph_set(
&self,
glyphset: Glyphset,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_add_glyphs<'c, 'input, 'future>(
&'c self,
glyphset: Glyphset,
glyphids: &'input [u32],
glyphs: &'input [Glyphinfo],
data: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_free_glyphs<'c, 'input, 'future>(
&'c self,
glyphset: Glyphset,
glyphs: &'input [Glyph],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_composite_glyphs8<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_composite_glyphs16<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_composite_glyphs32<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_fill_rectangles<'c, 'input, 'future>(
&'c self,
op: PictOp,
dst: Picture,
color: Color,
rects: &'input [Rectangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_cursor(
&self,
cid: Cursor,
source: Picture,
x: u16,
y: u16,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_set_picture_transform(
&self,
picture: Picture,
transform: Transform,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_query_filters(
&self,
drawable: Drawable,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryFiltersReply>, ConnectionError>> + Send + '_>> { ... }
fn render_set_picture_filter<'c, 'input, 'future>(
&'c self,
picture: Picture,
filter: &'input [u8],
values: &'input [Fixed],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_anim_cursor<'c, 'input, 'future>(
&'c self,
cid: Cursor,
cursors: &'input [Animcursorelt],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_add_traps<'c, 'input, 'future>(
&'c self,
picture: Picture,
x_off: i16,
y_off: i16,
traps: &'input [Trap],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_solid_fill(
&self,
picture: Picture,
color: Color,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn render_create_linear_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
p1: Pointfix,
p2: Pointfix,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_radial_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
inner: Pointfix,
outer: Pointfix,
inner_radius: Fixed,
outer_radius: Fixed,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn render_create_conical_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
center: Pointfix,
angle: Fixed,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn render_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn render_query_pict_formats( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPictFormatsReply>, ConnectionError>> + Send + '_>>
fn render_query_pict_index_values( &self, format: Pictformat, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPictIndexValuesReply>, ConnectionError>> + Send + '_>>
fn render_create_picture<'c, 'input, 'future>(
&'c self,
pid: Picture,
drawable: Drawable,
format: Pictformat,
value_list: &'input CreatePictureAux,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_change_picture<'c, 'input, 'future>(
&'c self,
picture: Picture,
value_list: &'input ChangePictureAux,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_set_picture_clip_rectangles<'c, 'input, 'future>(
&'c self,
picture: Picture,
clip_x_origin: i16,
clip_y_origin: i16,
rectangles: &'input [Rectangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_free_picture( &self, picture: Picture, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_composite<A>( &self, op: PictOp, src: Picture, mask: A, dst: Picture, src_x: i16, src_y: i16, mask_x: i16, mask_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_trapezoids<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
traps: &'input [Trapezoid],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_triangles<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
triangles: &'input [Triangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_tri_strip<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
points: &'input [Pointfix],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_tri_fan<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
src_x: i16,
src_y: i16,
points: &'input [Pointfix],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_glyph_set( &self, gsid: Glyphset, format: Pictformat, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_reference_glyph_set( &self, gsid: Glyphset, existing: Glyphset, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_free_glyph_set( &self, glyphset: Glyphset, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_add_glyphs<'c, 'input, 'future>(
&'c self,
glyphset: Glyphset,
glyphids: &'input [u32],
glyphs: &'input [Glyphinfo],
data: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_free_glyphs<'c, 'input, 'future>(
&'c self,
glyphset: Glyphset,
glyphs: &'input [Glyph],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_composite_glyphs8<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_composite_glyphs16<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_composite_glyphs32<'c, 'input, 'future>(
&'c self,
op: PictOp,
src: Picture,
dst: Picture,
mask_format: Pictformat,
glyphset: Glyphset,
src_x: i16,
src_y: i16,
glyphcmds: &'input [u8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_fill_rectangles<'c, 'input, 'future>(
&'c self,
op: PictOp,
dst: Picture,
color: Color,
rects: &'input [Rectangle],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_cursor( &self, cid: Cursor, source: Picture, x: u16, y: u16, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_set_picture_transform( &self, picture: Picture, transform: Transform, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_query_filters( &self, drawable: Drawable, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryFiltersReply>, ConnectionError>> + Send + '_>>
fn render_set_picture_filter<'c, 'input, 'future>(
&'c self,
picture: Picture,
filter: &'input [u8],
values: &'input [Fixed],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_anim_cursor<'c, 'input, 'future>(
&'c self,
cid: Cursor,
cursors: &'input [Animcursorelt],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_add_traps<'c, 'input, 'future>(
&'c self,
picture: Picture,
x_off: i16,
y_off: i16,
traps: &'input [Trap],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_solid_fill( &self, picture: Picture, color: Color, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn render_create_linear_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
p1: Pointfix,
p2: Pointfix,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_radial_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
inner: Pointfix,
outer: Pointfix,
inner_radius: Fixed,
outer_radius: Fixed,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn render_create_conical_gradient<'c, 'input, 'future>(
&'c self,
picture: Picture,
center: Pointfix,
angle: Fixed,
stops: &'input [Fixed],
colors: &'input [Color],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, 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.