Trait x11rb_async::x11_utils::Request
source · pub trait Request {
const EXTENSION_NAME: Option<&'static str>;
// Required method
fn serialize(
self,
extension_opcode: u8
) -> (Vec<u8, Global>, Vec<RawFdContainer, Global>);
}Expand description
A type implementing this trait is an X11 request.
Required Associated Constants§
sourceconst EXTENSION_NAME: Option<&'static str>
const EXTENSION_NAME: Option<&'static str>
The protocol name of the extension that this request belongs to, or None for core requests
Required Methods§
sourcefn serialize(
self,
extension_opcode: u8
) -> (Vec<u8, Global>, Vec<RawFdContainer, Global>)
fn serialize( self, extension_opcode: u8 ) -> (Vec<u8, Global>, Vec<RawFdContainer, Global>)
Serialize this request into its X11 protocol wire representation.
The argument is the major opcode of the extension that this request belongs to. For core requests, the argument may not have any influence