Struct redwm::imports::QueryExtensionRequest [−][src]
Expand description
check if extension is present.
Determines if the specified extension is present on this X11 server.
Every extension has a unique major_opcode
to identify requests, the minor
opcodes and request formats are extension-specific. If the extension provides
events and errors, the first_event
and first_error
fields in the reply are
set accordingly.
There should rarely be a need to use this request directly, XCB provides the
xcb_get_extension_data
function instead.
Fields
name_len
- The length ofname
in bytes.name
- The name of the extension to query, for example “RANDR”. This is case sensitive!
See
xdpyinfo
: programxcb_get_extension_data
: function
Fields
name: Cow<'input, [u8]>
Implementations
pub fn send<Conn>(
self,
conn: &Conn
) -> Result<Cookie<'_, Conn, QueryExtensionReply>, ConnectionError> where
Conn: RequestConnection + ?Sized,
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<QueryExtensionRequest<'input>, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<QueryExtensionRequest<'input>, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Clone all borrowed data in this QueryExtensionRequest.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Reply = QueryExtensionReply
type Reply = QueryExtensionReply
The kind of reply that this request generates.
Auto Trait Implementations
impl<'input> RefUnwindSafe for QueryExtensionRequest<'input>
impl<'input> Send for QueryExtensionRequest<'input>
impl<'input> Sync for QueryExtensionRequest<'input>
impl<'input> Unpin for QueryExtensionRequest<'input>
impl<'input> UnwindSafe for QueryExtensionRequest<'input>
Blanket Implementations
Mutably borrows from an owned value. Read more