Trait x11rb::wrapper::ConnectionExt

source ·
pub trait ConnectionExt: XProtoConnectionExt {
    // Provided methods
    fn change_property8<A, B>(
        &self,
        mode: PropMode,
        window: Window,
        property: A,
        type_: B,
        data: &[u8],
    ) -> Result<VoidCookie<'_, Self>, ConnectionError>
       where A: Into<Atom>,
             B: Into<Atom> { ... }
    fn change_property16<A, B>(
        &self,
        mode: PropMode,
        window: Window,
        property: A,
        type_: B,
        data: &[u16],
    ) -> Result<VoidCookie<'_, Self>, ConnectionError>
       where A: Into<Atom>,
             B: Into<Atom> { ... }
    fn change_property32<A, B>(
        &self,
        mode: PropMode,
        window: Window,
        property: A,
        type_: B,
        data: &[u32],
    ) -> Result<VoidCookie<'_, Self>, ConnectionError>
       where A: Into<Atom>,
             B: Into<Atom> { ... }
    fn sync(&self) -> Result<(), ReplyError> { ... }
}
Expand description

Extension trait that simplifies API use

Provided Methods§

source

fn change_property8<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u8], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<Atom>, B: Into<Atom>,

Change a property on a window with format 8.

source

fn change_property16<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u16], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<Atom>, B: Into<Atom>,

Change a property on a window with format 16.

source

fn change_property32<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u32], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<Atom>, B: Into<Atom>,

Change a property on a window with format 32.

source

fn sync(&self) -> Result<(), ReplyError>

Synchronise with the X11 server.

This function synchronises with the X11 server. This means that all requests that are still in the output buffer are sent to the server. Then, we wait until the X11 server processed all requests.

Object Safety§

This trait is not object safe.

Implementors§