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§
sourcefn change_property8<A, B>(
&self,
mode: PropMode,
window: Window,
property: A,
type_: B,
data: &[u8],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property8<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u8], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Change a property on a window with format 8.
sourcefn change_property16<A, B>(
&self,
mode: PropMode,
window: Window,
property: A,
type_: B,
data: &[u16],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property16<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u16], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Change a property on a window with format 16.
sourcefn change_property32<A, B>(
&self,
mode: PropMode,
window: Window,
property: A,
type_: B,
data: &[u32],
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn change_property32<A, B>( &self, mode: PropMode, window: Window, property: A, type_: B, data: &[u32], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Change a property on a window with format 32.
sourcefn sync(&self) -> Result<(), ReplyError>
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.