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