Struct x11rb_async::blocking::BlockingConnection
source · pub struct BlockingConnection<C> { /* private fields */ }Expand description
A Connection implementation that uses a threadpool to handle requests.
This type wraps around an existing x11rb Connection type,
and makes it non-blocking by pushing all operations to a threadpool. This is good if, for instance,
you have a Connection type that can’t trivially be integrated into a async runtime.
However, if you have the option of using a Connection type that is integrated into a real async
reactor, you should use that instead.
Implementation
The blocking threadpool is used to handle all requests.
Implementations§
source§impl<C: BlConnection + Send + Sync + 'static> BlockingConnection<C>
impl<C: BlConnection + Send + Sync + 'static> BlockingConnection<C>
source§impl<S: Stream + Send + Sync + 'static> BlockingConnection<RustConnection<S>>
impl<S: Stream + Send + Sync + 'static> BlockingConnection<RustConnection<S>>
sourcepub async fn connect_to_stream(
stream: S,
screen: usize
) -> Result<Self, ConnectError>
pub async fn connect_to_stream( stream: S, screen: usize ) -> Result<Self, ConnectError>
Establish a connection over the given stream.
sourcepub async fn connect_to_stream_with_auth_info(
stream: S,
screen: usize,
auth_name: Vec<u8>,
auth_data: Vec<u8>
) -> Result<Self, ConnectError>
pub async fn connect_to_stream_with_auth_info( stream: S, screen: usize, auth_name: Vec<u8>, auth_data: Vec<u8> ) -> Result<Self, ConnectError>
Establish a connection over the given stream using the given auth info
Trait Implementations§
source§impl<C: BlConnection + Send + Sync + 'static> Connection for BlockingConnection<C>
impl<C: BlConnection + Send + Sync + 'static> Connection for BlockingConnection<C>
source§fn poll_for_raw_event_with_sequence(
&self
) -> Result<Option<RawEventAndSeqNumber<Self::Buf>>, ConnectionError>
fn poll_for_raw_event_with_sequence( &self ) -> Result<Option<RawEventAndSeqNumber<Self::Buf>>, ConnectionError>
Poll for a raw/unparsed event from the X11 server.
source§fn wait_for_raw_event_with_sequence(
&self
) -> Pin<Box<dyn Future<Output = Result<RawEventAndSeqNumber<Self::Buf>, ConnectionError>> + Send + '_>>
fn wait_for_raw_event_with_sequence( &self ) -> Pin<Box<dyn Future<Output = Result<RawEventAndSeqNumber<Self::Buf>, ConnectionError>> + Send + '_>>
Wait for a raw/unparsed event from the X11 server. Read more
source§fn generate_id(
&self
) -> Pin<Box<dyn Future<Output = Result<u32, ReplyOrIdError>> + Send + '_>>
fn generate_id( &self ) -> Pin<Box<dyn Future<Output = Result<u32, ReplyOrIdError>> + Send + '_>>
Generate a new X11 identifier. Read more
source§fn flush(
&self
) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + '_>>
fn flush( &self ) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + '_>>
Flush the output buffer.
source§fn wait_for_event(
&self
) -> Pin<Box<dyn Future<Output = Result<Event, ConnectionError>> + Send + '_>>
fn wait_for_event( &self ) -> Pin<Box<dyn Future<Output = Result<Event, ConnectionError>> + Send + '_>>
Wait for a new event from the X11 server. Read more
source§fn wait_for_raw_event(
&self
) -> Pin<Box<dyn Future<Output = Result<Self::Buf, ConnectionError>> + Send + '_>>
fn wait_for_raw_event( &self ) -> Pin<Box<dyn Future<Output = Result<Self::Buf, ConnectionError>> + Send + '_>>
Wait for a new event from the X11 server. Read more
source§fn wait_for_event_with_sequence(
&self
) -> Pin<Box<dyn Future<Output = Result<EventAndSeqNumber, ConnectionError>> + Send + '_>>
fn wait_for_event_with_sequence( &self ) -> Pin<Box<dyn Future<Output = Result<EventAndSeqNumber, ConnectionError>> + Send + '_>>
Wait for a new event from the X11 server. Read more
source§fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>
fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>
Poll for a new event from the X11 server.
source§fn poll_for_raw_event(&self) -> Result<Option<Self::Buf>, ConnectionError>
fn poll_for_raw_event(&self) -> Result<Option<Self::Buf>, ConnectionError>
Poll for a raw/unparsed event from the X11 server.
source§fn poll_for_event_with_sequence(
&self
) -> Result<Option<EventAndSeqNumber>, ConnectionError>
fn poll_for_event_with_sequence( &self ) -> Result<Option<EventAndSeqNumber>, ConnectionError>
Poll for a new event from the X11 server.
source§impl<C: BlConnection + Send + Sync + 'static> RequestConnection for BlockingConnection<C>
impl<C: BlConnection + Send + Sync + 'static> RequestConnection for BlockingConnection<C>
§type Buf = <C as RequestConnection>::Buf
type Buf = <C as RequestConnection>::Buf
Type used as buffer to store raw replies or events before
they are parsed.
source§fn check_for_raw_error(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Buf>, ConnectionError>> + Send + '_>>
fn check_for_raw_error( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Buf>, ConnectionError>> + Send + '_>>
Check whether a request has errored. Read more
source§fn discard_reply(
&self,
sequence: SequenceNumber,
kind: RequestKind,
mode: DiscardMode
)
fn discard_reply( &self, sequence: SequenceNumber, kind: RequestKind, mode: DiscardMode )
The reply for this request shoiuld be discarded.
source§fn extension_information(
&self,
name: &'static str
) -> Pin<Box<dyn Future<Output = Result<Option<ExtensionInformation>, ConnectionError>> + Send + '_>>
fn extension_information( &self, name: &'static str ) -> Pin<Box<dyn Future<Output = Result<Option<ExtensionInformation>, ConnectionError>> + Send + '_>>
Get information about an extension. Read more
source§fn prefetch_extension_information(
&self,
name: &'static str
) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + '_>>
fn prefetch_extension_information( &self, name: &'static str ) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + '_>>
Prefetch information about an extension. Read more
source§fn maximum_request_bytes(
&self
) -> Pin<Box<dyn Future<Output = usize> + Send + '_>>
fn maximum_request_bytes( &self ) -> Pin<Box<dyn Future<Output = usize> + Send + '_>>
Get the maximum request length. Read more
source§fn prefetch_maximum_request_bytes(
&self
) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
fn prefetch_maximum_request_bytes( &self ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
Prefetches the maximum request length. Read more
source§fn parse_error(&self, error: &[u8]) -> Result<X11Error, ParseError>
fn parse_error(&self, error: &[u8]) -> Result<X11Error, ParseError>
Parse a generic error.
source§fn parse_event(&self, event: &[u8]) -> Result<Event, ParseError>
fn parse_event(&self, event: &[u8]) -> Result<Event, ParseError>
Parse a generic event.
source§fn send_request_with_reply<'this, 'bufs, 'sl, 're, 'future, R>(
&'this self,
bufs: &'bufs [IoSlice<'sl>],
fds: Vec<RawFdContainer>
) -> Pin<Box<dyn Future<Output = Result<Cookie<'this, Self, R>, ConnectionError>> + Send + 'future>>where
R: TryParse + Send + 're,
'this: 'future,
'bufs: 'future,
'sl: 'future,
're: 'future,
fn send_request_with_reply<'this, 'bufs, 'sl, 're, 'future, R>( &'this self, bufs: &'bufs [IoSlice<'sl>], fds: Vec<RawFdContainer> ) -> Pin<Box<dyn Future<Output = Result<Cookie<'this, Self, R>, ConnectionError>> + Send + 'future>>where R: TryParse + Send + 're, 'this: 'future, 'bufs: 'future, 'sl: 'future, 're: 'future,
Send a request with a reply to the server. Read more
source§fn send_request_with_reply_with_fds<'this, 'bufs, 'sl, 're, 'future, R>(
&'this self,
bufs: &'bufs [IoSlice<'sl>],
fds: Vec<RawFdContainer>
) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'this, Self, R>, ConnectionError>> + Send + 'future>>where
R: TryParseFd + Send + 're,
'this: 'future,
'bufs: 'future,
'sl: 'future,
're: 'future,
fn send_request_with_reply_with_fds<'this, 'bufs, 'sl, 're, 'future, R>( &'this self, bufs: &'bufs [IoSlice<'sl>], fds: Vec<RawFdContainer> ) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'this, Self, R>, ConnectionError>> + Send + 'future>>where R: TryParseFd + Send + 're, 'this: 'future, 'bufs: 'future, 'sl: 'future, 're: 'future,
Send a request with a reply containing file descriptors to the server. Read more
source§fn send_request_without_reply<'this, 'bufs, 'sl, 'future>(
&'this self,
bufs: &'bufs [IoSlice<'sl>],
fds: Vec<RawFdContainer>
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'this, Self>, ConnectionError>> + Send + 'future>>where
'this: 'future,
'bufs: 'future,
'sl: 'future,
fn send_request_without_reply<'this, 'bufs, 'sl, 'future>( &'this self, bufs: &'bufs [IoSlice<'sl>], fds: Vec<RawFdContainer> ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'this, Self>, ConnectionError>> + Send + 'future>>where 'this: 'future, 'bufs: 'future, 'sl: 'future,
Send a request without a reply to the server. Read more
source§fn wait_for_reply(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Buf>, ConnectionError>> + Send + '_>>
fn wait_for_reply( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Buf>, ConnectionError>> + Send + '_>>
Wait for the reply to a request. Read more
source§fn wait_for_reply_or_raw_error(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<ReplyOrError<Self::Buf>, ConnectionError>> + Send + '_>>
fn wait_for_reply_or_raw_error( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<ReplyOrError<Self::Buf>, ConnectionError>> + Send + '_>>
Wait for the reply to a request. Read more
source§fn wait_for_reply_with_fds_raw(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<ReplyOrError<BufWithFds<Self::Buf>, Self::Buf>, ConnectionError>> + Send + '_>>
fn wait_for_reply_with_fds_raw( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<ReplyOrError<BufWithFds<Self::Buf>, Self::Buf>, ConnectionError>> + Send + '_>>
Wait for the reply to a request with file descriptors. Read more
source§fn send_trait_request_with_reply<'this, 'req, 'future, R>(
&'this self,
request: R
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, R::Reply>, ConnectionError>> + Send + 'future>>where
R: ReplyRequest + Send + 'req,
R::Reply: Send,
'this: 'future,
'req: 'future,
fn send_trait_request_with_reply<'this, 'req, 'future, R>( &'this self, request: R ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, R::Reply>, ConnectionError>> + Send + 'future>>where R: ReplyRequest + Send + 'req, R::Reply: Send, 'this: 'future, 'req: 'future,
Send a request with a reply to the server. Read more
source§fn send_trait_request_with_reply_with_fds<'this, 'req, 'future, R>(
&'this self,
request: R
) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'_, Self, R::Reply>, ConnectionError>> + Send + 'future>>where
R: ReplyFDsRequest + Send + 'req,
R::Reply: Send,
'this: 'future,
'req: 'future,
fn send_trait_request_with_reply_with_fds<'this, 'req, 'future, R>( &'this self, request: R ) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'_, Self, R::Reply>, ConnectionError>> + Send + 'future>>where R: ReplyFDsRequest + Send + 'req, R::Reply: Send, 'this: 'future, 'req: 'future,
Send a request with a reply containing file descriptors to the server. Read more
source§fn send_trait_request_without_reply<'this, 'req, 'future, R>(
&'this self,
request: R
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'this, Self>, ConnectionError>> + Send + 'future>>where
R: VoidRequest + Send + 'req,
'this: 'future,
'req: 'future,
fn send_trait_request_without_reply<'this, 'req, 'future, R>( &'this self, request: R ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'this, Self>, ConnectionError>> + Send + 'future>>where R: VoidRequest + Send + 'req, 'this: 'future, 'req: 'future,
Send a request without a reply to the server. Read more
source§fn wait_for_reply_or_error(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<Self::Buf, ReplyError>> + Send + '_>>
fn wait_for_reply_or_error( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<Self::Buf, ReplyError>> + Send + '_>>
Wait for the reply to a request. Read more
source§fn wait_for_reply_with_fds(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<BufWithFds<Self::Buf>, ReplyError>> + Send + '_>>
fn wait_for_reply_with_fds( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<BufWithFds<Self::Buf>, ReplyError>> + Send + '_>>
Wait for the reply to a request with file descriptors. Read more
source§fn check_for_error(
&self,
sequence: SequenceNumber
) -> Pin<Box<dyn Future<Output = Result<(), ReplyError>> + Send + '_>>
fn check_for_error( &self, sequence: SequenceNumber ) -> Pin<Box<dyn Future<Output = Result<(), ReplyError>> + Send + '_>>
Check whether a request has errored. Read more
Auto Trait Implementations§
impl<C> RefUnwindSafe for BlockingConnection<C>where C: RefUnwindSafe,
impl<C> Send for BlockingConnection<C>where C: Send + Sync,
impl<C> Sync for BlockingConnection<C>where C: Send + Sync,
impl<C> Unpin for BlockingConnection<C>
impl<C> UnwindSafe for BlockingConnection<C>where C: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere C: RequestConnection + ?Sized,
fn xfixes_query_version( &self, client_major_version: u32, client_minor_version: u32 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn xfixes_change_save_set( &self, mode: SaveSetMode, target: SaveSetTarget, map: SaveSetMapping, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_select_selection_input( &self, window: Window, selection: Atom, event_mask: SelectionEventMask ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_select_cursor_input( &self, window: Window, event_mask: CursorNotifyMask ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_get_cursor_image( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCursorImageReply>, ConnectionError>> + Send + '_>>
fn xfixes_create_region<'c, 'input, 'future>( &'c self, region: Region, rectangles: &'input [Rectangle] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn xfixes_create_region_from_bitmap( &self, region: Region, bitmap: Pixmap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_create_region_from_window( &self, region: Region, window: Window, kind: SK ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_create_region_from_gc( &self, region: Region, gc: Gcontext ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_create_region_from_picture( &self, region: Region, picture: Picture ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_destroy_region( &self, region: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_set_region<'c, 'input, 'future>( &'c self, region: Region, rectangles: &'input [Rectangle] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn xfixes_copy_region( &self, source: Region, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_union_region( &self, source1: Region, source2: Region, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_intersect_region( &self, source1: Region, source2: Region, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_subtract_region( &self, source1: Region, source2: Region, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_invert_region( &self, source: Region, bounds: Rectangle, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_translate_region( &self, region: Region, dx: i16, dy: i16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_region_extents( &self, source: Region, destination: Region ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_fetch_region( &self, region: Region ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, FetchRegionReply>, ConnectionError>> + Send + '_>>
fn xfixes_set_gc_clip_region<A>( &self, gc: Gcontext, region: A, x_origin: i16, y_origin: i16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Region> + Send + 'static,
fn xfixes_set_window_shape_region<A>( &self, dest: Window, dest_kind: SK, x_offset: i16, y_offset: i16, region: A ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Region> + Send + 'static,
fn xfixes_set_picture_clip_region<A>( &self, picture: Picture, region: A, x_origin: i16, y_origin: i16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Region> + Send + 'static,
fn xfixes_set_cursor_name<'c, 'input, 'future>( &'c self, cursor: Cursor, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn xfixes_get_cursor_name( &self, cursor: Cursor ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCursorNameReply>, ConnectionError>> + Send + '_>>
fn xfixes_get_cursor_image_and_name( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCursorImageAndNameReply>, ConnectionError>> + Send + '_>>
fn xfixes_change_cursor( &self, source: Cursor, destination: Cursor ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_change_cursor_by_name<'c, 'input, 'future>( &'c self, src: Cursor, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn xfixes_expand_region( &self, source: Region, destination: Region, left: u16, right: u16, top: u16, bottom: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_hide_cursor( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_show_cursor( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_create_pointer_barrier<'c, 'input, 'future>( &'c self, barrier: Barrier, window: Window, x1: u16, y1: u16, x2: u16, y2: u16, directions: BarrierDirections, devices: &'input [u16] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn xfixes_delete_pointer_barrier( &self, barrier: Barrier ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_set_client_disconnect_mode( &self, disconnect_mode: ClientDisconnectFlags ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xfixes_get_client_disconnect_mode( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetClientDisconnectModeReply>, ConnectionError>> + Send + '_>>
source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere C: RequestConnection + ?Sized,
source§fn create_window<'c, 'input, 'future>(
&'c self,
depth: u8,
wid: Window,
parent: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
class: WindowClass,
visual: Visualid,
value_list: &'input CreateWindowAux
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn create_window<'c, 'input, 'future>( &'c self, depth: u8, wid: Window, parent: Window, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: Visualid, value_list: &'input CreateWindowAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Creates a window. Read more
source§fn change_window_attributes<'c, 'input, 'future>(
&'c self,
window: Window,
value_list: &'input ChangeWindowAttributesAux
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn change_window_attributes<'c, 'input, 'future>( &'c self, window: Window, value_list: &'input ChangeWindowAttributesAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
change window attributes. Read more
source§fn get_window_attributes(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetWindowAttributesReply>, ConnectionError>> + Send + '_>>
fn get_window_attributes( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetWindowAttributesReply>, ConnectionError>> + Send + '_>>
Gets window attributes. Read more
source§fn destroy_window(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn destroy_window( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Destroys a window. Read more
fn destroy_subwindows( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn change_save_set(
&self,
mode: SetMode,
window: Window
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn change_save_set( &self, mode: SetMode, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Changes a client’s save set. Read more
source§fn reparent_window(
&self,
window: Window,
parent: Window,
x: i16,
y: i16
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn reparent_window( &self, window: Window, parent: Window, x: i16, y: i16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Reparents a window. Read more
source§fn map_window(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn map_window( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Makes a window visible. Read more
fn map_subwindows( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn unmap_window(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn unmap_window( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Makes a window invisible. Read more
fn unmap_subwindows( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn configure_window<'c, 'input, 'future>(
&'c self,
window: Window,
value_list: &'input ConfigureWindowAux
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn configure_window<'c, 'input, 'future>( &'c self, window: Window, value_list: &'input ConfigureWindowAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Configures window attributes. Read more
source§fn circulate_window(
&self,
direction: Circulate,
window: Window
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn circulate_window( &self, direction: Circulate, window: Window ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Change window stacking order. Read more
source§fn get_geometry(
&self,
drawable: Drawable
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetGeometryReply>, ConnectionError>> + Send + '_>>
fn get_geometry( &self, drawable: Drawable ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetGeometryReply>, ConnectionError>> + Send + '_>>
Get current window geometry. Read more
source§fn query_tree(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryTreeReply>, ConnectionError>> + Send + '_>>
fn query_tree( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryTreeReply>, ConnectionError>> + Send + '_>>
query the window tree. Read more
source§fn intern_atom<'c, 'input, 'future>(
&'c self,
only_if_exists: bool,
name: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, InternAtomReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn intern_atom<'c, 'input, 'future>( &'c self, only_if_exists: bool, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, InternAtomReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Get atom identifier by name. Read more
fn get_atom_name( &self, atom: Atom ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetAtomNameReply>, ConnectionError>> + Send + '_>>
source§fn change_property<'c, 'input, 'future, A, B>(
&'c self,
mode: PropMode,
window: Window,
property: A,
type_: B,
format: u8,
data_len: u32,
data: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
A: Into<Atom> + Send + 'static,
B: Into<Atom> + Send + 'static,
'c: 'future,
'input: 'future,
fn change_property<'c, 'input, 'future, A, B>( &'c self, mode: PropMode, window: Window, property: A, type_: B, format: u8, data_len: u32, data: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where A: Into<Atom> + Send + 'static, B: Into<Atom> + Send + 'static, 'c: 'future, 'input: 'future,
Changes a window property. Read more
fn delete_property( &self, window: Window, property: Atom ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn get_property<A, B>(
&self,
delete: bool,
window: Window,
property: A,
type_: B,
long_offset: u32,
long_length: u32
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPropertyReply>, ConnectionError>> + Send + '_>>where
A: Into<Atom> + Send + 'static,
B: Into<Atom> + Send + 'static,
fn get_property<A, B>( &self, delete: bool, window: Window, property: A, type_: B, long_offset: u32, long_length: u32 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPropertyReply>, ConnectionError>> + Send + '_>>where A: Into<Atom> + Send + 'static, B: Into<Atom> + Send + 'static,
Gets a window property. Read more
fn list_properties( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListPropertiesReply>, ConnectionError>> + Send + '_>>
source§fn set_selection_owner<A, B>(
&self,
owner: A,
selection: Atom,
time: B
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Window> + Send + 'static,
B: Into<Timestamp> + Send + 'static,
fn set_selection_owner<A, B>( &self, owner: A, selection: Atom, time: B ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Window> + Send + 'static, B: Into<Timestamp> + Send + 'static,
Sets the owner of a selection. Read more
source§fn get_selection_owner(
&self,
selection: Atom
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetSelectionOwnerReply>, ConnectionError>> + Send + '_>>
fn get_selection_owner( &self, selection: Atom ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetSelectionOwnerReply>, ConnectionError>> + Send + '_>>
Gets the owner of a selection. Read more
fn convert_selection<A, B>( &self, requestor: Window, selection: Atom, target: Atom, property: A, time: B ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Atom> + Send + 'static, B: Into<Timestamp> + Send + 'static,
source§fn send_event<A, B>(
&self,
propagate: bool,
destination: A,
event_mask: EventMask,
event: B
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Window> + Send + 'static,
B: Into<[u8; 32]> + Send + 'static,
fn send_event<A, B>( &self, propagate: bool, destination: A, event_mask: EventMask, event: B ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Window> + Send + 'static, B: Into<[u8; 32]> + Send + 'static,
send an event. Read more
source§fn grab_pointer<A, B, C>(
&self,
owner_events: bool,
grab_window: Window,
event_mask: EventMask,
pointer_mode: GrabMode,
keyboard_mode: GrabMode,
confine_to: A,
cursor: B,
time: C
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GrabPointerReply>, ConnectionError>> + Send + '_>>where
A: Into<Window> + Send + 'static,
B: Into<Cursor> + Send + 'static,
C: Into<Timestamp> + Send + 'static,
fn grab_pointer<A, B, C>( &self, owner_events: bool, grab_window: Window, event_mask: EventMask, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: A, cursor: B, time: C ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GrabPointerReply>, ConnectionError>> + Send + '_>>where A: Into<Window> + Send + 'static, B: Into<Cursor> + Send + 'static, C: Into<Timestamp> + Send + 'static,
Grab the pointer. Read more
source§fn ungrab_pointer<A>(
&self,
time: A
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Timestamp> + Send + 'static,
fn ungrab_pointer<A>( &self, time: A ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Timestamp> + Send + 'static,
release the pointer. Read more
Grab pointer button(s). Read more
fn change_active_pointer_grab<A, B>( &self, cursor: A, time: B, event_mask: EventMask ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Cursor> + Send + 'static, B: Into<Timestamp> + Send + 'static,
source§fn grab_keyboard<A>(
&self,
owner_events: bool,
grab_window: Window,
time: A,
pointer_mode: GrabMode,
keyboard_mode: GrabMode
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GrabKeyboardReply>, ConnectionError>> + Send + '_>>where
A: Into<Timestamp> + Send + 'static,
fn grab_keyboard<A>( &self, owner_events: bool, grab_window: Window, time: A, pointer_mode: GrabMode, keyboard_mode: GrabMode ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GrabKeyboardReply>, ConnectionError>> + Send + '_>>where A: Into<Timestamp> + Send + 'static,
Grab the keyboard. Read more
fn ungrab_keyboard<A>( &self, time: A ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Timestamp> + Send + 'static,
source§fn grab_key<A>(
&self,
owner_events: bool,
grab_window: Window,
modifiers: ModMask,
key: A,
pointer_mode: GrabMode,
keyboard_mode: GrabMode
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Keycode> + Send + 'static,
fn grab_key<A>( &self, owner_events: bool, grab_window: Window, modifiers: ModMask, key: A, pointer_mode: GrabMode, keyboard_mode: GrabMode ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Keycode> + Send + 'static,
Grab keyboard key(s). Read more
source§fn ungrab_key<A>(
&self,
key: A,
grab_window: Window,
modifiers: ModMask
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Keycode> + Send + 'static,
fn ungrab_key<A>( &self, key: A, grab_window: Window, modifiers: ModMask ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Keycode> + Send + 'static,
release a key combination. Read more
source§fn allow_events<A>(
&self,
mode: Allow,
time: A
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Timestamp> + Send + 'static,
fn allow_events<A>( &self, mode: Allow, time: A ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Timestamp> + Send + 'static,
release queued events. Read more
fn grab_server( &self ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn ungrab_server( &self ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn query_pointer(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPointerReply>, ConnectionError>> + Send + '_>>
fn query_pointer( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryPointerReply>, ConnectionError>> + Send + '_>>
get pointer coordinates. Read more
fn get_motion_events<A, B>( &self, window: Window, start: A, stop: B ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetMotionEventsReply>, ConnectionError>> + Send + '_>>where A: Into<Timestamp> + Send + 'static, B: Into<Timestamp> + Send + 'static,
fn translate_coordinates( &self, src_window: Window, dst_window: Window, src_x: i16, src_y: i16 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, TranslateCoordinatesReply>, ConnectionError>> + Send + '_>>
source§fn warp_pointer<A, B>(
&self,
src_window: A,
dst_window: B,
src_x: i16,
src_y: i16,
src_width: u16,
src_height: u16,
dst_x: i16,
dst_y: i16
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Window> + Send + 'static,
B: Into<Window> + Send + 'static,
fn warp_pointer<A, B>( &self, src_window: A, dst_window: B, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Window> + Send + 'static, B: Into<Window> + Send + 'static,
move mouse pointer. Read more
source§fn set_input_focus<A, B>(
&self,
revert_to: InputFocus,
focus: A,
time: B
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Window> + Send + 'static,
B: Into<Timestamp> + Send + 'static,
fn set_input_focus<A, B>( &self, revert_to: InputFocus, focus: A, time: B ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Window> + Send + 'static, B: Into<Timestamp> + Send + 'static,
Sets input focus. Read more
fn get_input_focus( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetInputFocusReply>, ConnectionError>> + Send + '_>>
fn query_keymap( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryKeymapReply>, ConnectionError>> + Send + '_>>
source§fn open_font<'c, 'input, 'future>(
&'c self,
fid: Font,
name: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn open_font<'c, 'input, 'future>( &'c self, fid: Font, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
opens a font. Read more
fn close_font( &self, font: Font ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn query_font(
&self,
font: Fontable
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryFontReply>, ConnectionError>> + Send + '_>>
fn query_font( &self, font: Fontable ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryFontReply>, ConnectionError>> + Send + '_>>
query font metrics. Read more
source§fn query_text_extents<'c, 'input, 'future>(
&'c self,
font: Fontable,
string: &'input [Char2b]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryTextExtentsReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn query_text_extents<'c, 'input, 'future>( &'c self, font: Fontable, string: &'input [Char2b] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryTextExtentsReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
get text extents. Read more
source§fn list_fonts<'c, 'input, 'future>(
&'c self,
max_names: u16,
pattern: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, ListFontsReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn list_fonts<'c, 'input, 'future>( &'c self, max_names: u16, pattern: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, ListFontsReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
get matching font names. Read more
source§fn list_fonts_with_info<'c, 'input, 'future>(
&'c self,
max_names: u16,
pattern: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<ListFontsWithInfoCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn list_fonts_with_info<'c, 'input, 'future>( &'c self, max_names: u16, pattern: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<ListFontsWithInfoCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
get matching font names and information. Read more
fn set_font_path<'c, 'input, 'future>( &'c self, font: &'input [Str] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_font_path( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetFontPathReply>, ConnectionError>> + Send + '_>>
source§fn create_pixmap(
&self,
depth: u8,
pid: Pixmap,
drawable: Drawable,
width: u16,
height: u16
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn create_pixmap( &self, depth: u8, pid: Pixmap, drawable: Drawable, width: u16, height: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Creates a pixmap. Read more
source§fn free_pixmap(
&self,
pixmap: Pixmap
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn free_pixmap( &self, pixmap: Pixmap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Destroys a pixmap. Read more
source§fn create_gc<'c, 'input, 'future>(
&'c self,
cid: Gcontext,
drawable: Drawable,
value_list: &'input CreateGCAux
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn create_gc<'c, 'input, 'future>( &'c self, cid: Gcontext, drawable: Drawable, value_list: &'input CreateGCAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Creates a graphics context. Read more
source§fn change_gc<'c, 'input, 'future>(
&'c self,
gc: Gcontext,
value_list: &'input ChangeGCAux
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn change_gc<'c, 'input, 'future>( &'c self, gc: Gcontext, value_list: &'input ChangeGCAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
change graphics context components. Read more
fn copy_gc( &self, src_gc: Gcontext, dst_gc: Gcontext, value_mask: GC ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn set_dashes<'c, 'input, 'future>( &'c self, gc: Gcontext, dash_offset: u16, dashes: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn set_clip_rectangles<'c, 'input, 'future>( &'c self, ordering: ClipOrdering, gc: Gcontext, 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,
source§fn free_gc(
&self,
gc: Gcontext
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn free_gc( &self, gc: Gcontext ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Destroys a graphics context. Read more
fn clear_area( &self, exposures: bool, window: Window, x: i16, y: i16, width: u16, height: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn copy_area(
&self,
src_drawable: Drawable,
dst_drawable: Drawable,
gc: Gcontext,
src_x: i16,
src_y: i16,
dst_x: i16,
dst_y: i16,
width: u16,
height: u16
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn copy_area( &self, src_drawable: Drawable, dst_drawable: Drawable, gc: Gcontext, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
copy areas. Read more
fn copy_plane( &self, src_drawable: Drawable, dst_drawable: Drawable, gc: Gcontext, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn poly_point<'c, 'input, 'future>( &'c self, coordinate_mode: CoordMode, drawable: Drawable, gc: Gcontext, points: &'input [Point] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
source§fn poly_line<'c, 'input, 'future>(
&'c self,
coordinate_mode: CoordMode,
drawable: Drawable,
gc: Gcontext,
points: &'input [Point]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn poly_line<'c, 'input, 'future>( &'c self, coordinate_mode: CoordMode, drawable: Drawable, gc: Gcontext, points: &'input [Point] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
draw lines. Read more
source§fn poly_segment<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
gc: Gcontext,
segments: &'input [Segment]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn poly_segment<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, segments: &'input [Segment] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
draw lines. Read more
fn poly_rectangle<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, rectangles: &'input [Rectangle] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn poly_arc<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, arcs: &'input [Arc] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn fill_poly<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, shape: PolyShape, coordinate_mode: CoordMode, points: &'input [Point] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
source§fn poly_fill_rectangle<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
gc: Gcontext,
rectangles: &'input [Rectangle]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn poly_fill_rectangle<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, rectangles: &'input [Rectangle] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Fills rectangles. Read more
fn poly_fill_arc<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, arcs: &'input [Arc] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn put_image<'c, 'input, 'future>( &'c self, format: ImageFormat, drawable: Drawable, gc: Gcontext, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_image( &self, format: ImageFormat, drawable: Drawable, x: i16, y: i16, width: u16, height: u16, plane_mask: u32 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetImageReply>, ConnectionError>> + Send + '_>>
fn poly_text8<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, x: i16, y: i16, items: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn poly_text16<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, x: i16, y: i16, items: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
source§fn image_text8<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
gc: Gcontext,
x: i16,
y: i16,
string: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn image_text8<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, x: i16, y: i16, string: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Draws text. Read more
source§fn image_text16<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
gc: Gcontext,
x: i16,
y: i16,
string: &'input [Char2b]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn image_text16<'c, 'input, 'future>( &'c self, drawable: Drawable, gc: Gcontext, x: i16, y: i16, string: &'input [Char2b] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Draws text. Read more
fn create_colormap( &self, alloc: ColormapAlloc, mid: Colormap, window: Window, visual: Visualid ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn free_colormap( &self, cmap: Colormap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn copy_colormap_and_free( &self, mid: Colormap, src_cmap: Colormap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn install_colormap( &self, cmap: Colormap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn uninstall_colormap( &self, cmap: Colormap ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn list_installed_colormaps( &self, window: Window ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListInstalledColormapsReply>, ConnectionError>> + Send + '_>>
source§fn alloc_color(
&self,
cmap: Colormap,
red: u16,
green: u16,
blue: u16
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AllocColorReply>, ConnectionError>> + Send + '_>>
fn alloc_color( &self, cmap: Colormap, red: u16, green: u16, blue: u16 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AllocColorReply>, ConnectionError>> + Send + '_>>
Allocate a color. Read more
fn alloc_named_color<'c, 'input, 'future>( &'c self, cmap: Colormap, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, AllocNamedColorReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn alloc_color_cells( &self, contiguous: bool, cmap: Colormap, colors: u16, planes: u16 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AllocColorCellsReply>, ConnectionError>> + Send + '_>>
fn alloc_color_planes( &self, contiguous: bool, cmap: Colormap, colors: u16, reds: u16, greens: u16, blues: u16 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, AllocColorPlanesReply>, ConnectionError>> + Send + '_>>
fn free_colors<'c, 'input, 'future>( &'c self, cmap: Colormap, plane_mask: u32, pixels: &'input [u32] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn store_colors<'c, 'input, 'future>( &'c self, cmap: Colormap, items: &'input [Coloritem] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn store_named_color<'c, 'input, 'future>( &'c self, flags: ColorFlag, cmap: Colormap, pixel: u32, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn query_colors<'c, 'input, 'future>( &'c self, cmap: Colormap, pixels: &'input [u32] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryColorsReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn lookup_color<'c, 'input, 'future>( &'c self, cmap: Colormap, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, LookupColorReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn create_cursor<A>( &self, cid: Cursor, source: Pixmap, mask: A, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Pixmap> + Send + 'static,
source§fn create_glyph_cursor<A>(
&self,
cid: Cursor,
source_font: Font,
mask_font: A,
source_char: u16,
mask_char: u16,
fore_red: u16,
fore_green: u16,
fore_blue: u16,
back_red: u16,
back_green: u16,
back_blue: u16
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<Font> + Send + 'static,
fn create_glyph_cursor<A>( &self, cid: Cursor, source_font: Font, mask_font: A, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<Font> + Send + 'static,
create cursor. Read more
source§fn free_cursor(
&self,
cursor: Cursor
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn free_cursor( &self, cursor: Cursor ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Deletes a cursor. Read more
fn recolor_cursor( &self, cursor: Cursor, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn query_best_size( &self, class: QueryShapeOf, drawable: Drawable, width: u16, height: u16 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryBestSizeReply>, ConnectionError>> + Send + '_>>
source§fn query_extension<'c, 'input, 'future>(
&'c self,
name: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryExtensionReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn query_extension<'c, 'input, 'future>( &'c self, name: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, QueryExtensionReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
check if extension is present. Read more
fn list_extensions( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListExtensionsReply>, ConnectionError>> + Send + '_>>
fn change_keyboard_mapping<'c, 'input, 'future>( &'c self, keycode_count: u8, first_keycode: Keycode, keysyms_per_keycode: u8, keysyms: &'input [Keysym] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_keyboard_mapping( &self, first_keycode: Keycode, count: u8 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetKeyboardMappingReply>, ConnectionError>> + Send + '_>>
fn change_keyboard_control<'c, 'input, 'future>( &'c self, value_list: &'input ChangeKeyboardControlAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_keyboard_control( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetKeyboardControlReply>, ConnectionError>> + Send + '_>>
fn bell( &self, percent: i8 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn change_pointer_control( &self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn get_pointer_control( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPointerControlReply>, ConnectionError>> + Send + '_>>
fn set_screen_saver( &self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn get_screen_saver( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetScreenSaverReply>, ConnectionError>> + Send + '_>>
fn change_hosts<'c, 'input, 'future>( &'c self, mode: HostMode, family: Family, address: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn list_hosts( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListHostsReply>, ConnectionError>> + Send + '_>>
fn set_access_control( &self, mode: AccessControl ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn set_close_down_mode( &self, mode: CloseDown ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§fn kill_client<A>(
&self,
resource: A
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where
A: Into<u32> + Send + 'static,
fn kill_client<A>( &self, resource: A ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<u32> + Send + 'static,
kills a client. Read more
fn rotate_properties<'c, 'input, 'future>( &'c self, window: Window, delta: i16, atoms: &'input [Atom] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn force_screen_saver( &self, mode: ScreenSaver ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn set_pointer_mapping<'c, 'input, 'future>( &'c self, map: &'input [u8] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, SetPointerMappingReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_pointer_mapping( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPointerMappingReply>, ConnectionError>> + Send + '_>>
fn set_modifier_mapping<'c, 'input, 'future>( &'c self, keycodes: &'input [Keycode] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, SetModifierMappingReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn get_modifier_mapping( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetModifierMappingReply>, ConnectionError>> + Send + '_>>
fn no_operation( &self ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere C: RequestConnection + ?Sized,
fn sync_initialize( &self, desired_major_version: u8, desired_minor_version: u8 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, InitializeReply>, ConnectionError>> + Send + '_>>
fn sync_list_system_counters( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListSystemCountersReply>, ConnectionError>> + Send + '_>>
fn sync_create_counter( &self, id: Counter, initial_value: Int64 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_destroy_counter( &self, counter: Counter ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_query_counter( &self, counter: Counter ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryCounterReply>, ConnectionError>> + Send + '_>>
fn sync_await_<'c, 'input, 'future>( &'c self, wait_list: &'input [Waitcondition] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn sync_change_counter( &self, counter: Counter, amount: Int64 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_set_counter( &self, counter: Counter, value: Int64 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_create_alarm<'c, 'input, 'future>( &'c self, id: Alarm, value_list: &'input CreateAlarmAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn sync_change_alarm<'c, 'input, 'future>( &'c self, id: Alarm, value_list: &'input ChangeAlarmAux ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
fn sync_destroy_alarm( &self, alarm: Alarm ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_query_alarm( &self, alarm: Alarm ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryAlarmReply>, ConnectionError>> + Send + '_>>
fn sync_set_priority( &self, id: u32, priority: i32 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_get_priority( &self, id: u32 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPriorityReply>, ConnectionError>> + Send + '_>>
fn sync_create_fence( &self, drawable: Drawable, fence: Fence, initially_triggered: bool ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_trigger_fence( &self, fence: Fence ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_reset_fence( &self, fence: Fence ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_destroy_fence( &self, fence: Fence ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn sync_query_fence( &self, fence: Fence ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryFenceReply>, ConnectionError>> + Send + '_>>
fn sync_await_fence<'c, 'input, 'future>( &'c self, fence_list: &'input [Fence] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere C: RequestConnection + ?Sized,
fn shm_query_version( &self ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn shm_attach( &self, shmseg: Seg, shmid: u32, read_only: bool ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn shm_detach( &self, shmseg: Seg ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn shm_put_image( &self, drawable: Drawable, gc: Gcontext, total_width: u16, total_height: u16, src_x: u16, src_y: u16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, depth: u8, format: u8, send_event: bool, shmseg: Seg, offset: u32 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn shm_get_image( &self, drawable: Drawable, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, format: u8, shmseg: Seg, offset: u32 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetImageReply>, ConnectionError>> + Send + '_>>
fn shm_create_pixmap( &self, pid: Pixmap, drawable: Drawable, width: u16, height: u16, depth: u8, shmseg: Seg, offset: u32 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn shm_attach_fd<A>( &self, shmseg: Seg, shm_fd: A, read_only: bool ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>where A: Into<RawFdContainer> + Send + 'static,
fn shm_create_segment( &self, shmseg: Seg, size: u32, read_only: bool ) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'_, Self, CreateSegmentReply>, ConnectionError>> + Send + '_>>
source§impl<C> ConnectionExt for Cwhere
C: RequestConnection + ?Sized,
impl<C> ConnectionExt for Cwhere C: RequestConnection + ?Sized,
source§fn dbe_query_version(
&self,
major_version: u8,
minor_version: u8
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
fn dbe_query_version( &self, major_version: u8, minor_version: u8 ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>>
Queries the version of this extension. Read more
source§fn dbe_allocate_back_buffer(
&self,
window: Window,
buffer: BackBuffer,
swap_action: u8
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dbe_allocate_back_buffer( &self, window: Window, buffer: BackBuffer, swap_action: u8 ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Allocates a back buffer. Read more
source§fn dbe_deallocate_back_buffer(
&self,
buffer: BackBuffer
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dbe_deallocate_back_buffer( &self, buffer: BackBuffer ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Deallocates a back buffer. Read more
source§fn dbe_swap_buffers<'c, 'input, 'future>(
&'c self,
actions: &'input [SwapInfo]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn dbe_swap_buffers<'c, 'input, 'future>( &'c self, actions: &'input [SwapInfo] ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Swaps front and back buffers. Read more
source§fn dbe_begin_idiom(
&self
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dbe_begin_idiom( &self ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Begins a logical swap block. Read more
source§fn dbe_end_idiom(
&self
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn dbe_end_idiom( &self ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
Ends a logical swap block.
source§fn dbe_get_visual_info<'c, 'input, 'future>(
&'c self,
drawables: &'input [Drawable]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetVisualInfoReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn dbe_get_visual_info<'c, 'input, 'future>( &'c self, drawables: &'input [Drawable] ) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, GetVisualInfoReply>, ConnectionError>> + Send + 'future>>where 'c: 'future, 'input: 'future,
Requests visuals that support double buffering.
source§fn dbe_get_back_buffer_attributes(
&self,
buffer: BackBuffer
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetBackBufferAttributesReply>, ConnectionError>> + Send + '_>>
fn dbe_get_back_buffer_attributes( &self, buffer: BackBuffer ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetBackBufferAttributesReply>, ConnectionError>> + Send + '_>>
Gets back buffer attributes. Read more