x11rb::wrapper

Trait 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.

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§