Struct xcb::x::QueryExtension
source · pub struct QueryExtension<'a> {
pub name: &'a [u8],
}
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, the extensions can be activated with Connection::connect_with_extensions.
This request replies QueryExtensionReply.
Associated cookie types are QueryExtensionCookie and QueryExtensionCookieUnchecked.
Fields§
§name: &'a [u8]
The name of the extension to query, for example “RANDR”. This is case sensitive!
Trait Implementations§
source§impl<'a> Clone for QueryExtension<'a>
impl<'a> Clone for QueryExtension<'a>
source§fn clone(&self) -> QueryExtension<'a>
fn clone(&self) -> QueryExtension<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for QueryExtension<'a>
impl<'a> Debug for QueryExtension<'a>
source§impl<'a> RawRequest for QueryExtension<'a>
impl<'a> RawRequest for QueryExtension<'a>
source§fn raw_request(&self, c: &Connection, checked: bool) -> u64
fn raw_request(&self, c: &Connection, checked: bool) -> u64
Actual implementation of the request sending Read more
source§impl<'a> Request for QueryExtension<'a>
impl<'a> Request for QueryExtension<'a>
source§impl<'a> RequestWithReply for QueryExtension<'a>
impl<'a> RequestWithReply for QueryExtension<'a>
source§type Reply = QueryExtensionReply
type Reply = QueryExtensionReply
Reply associated with the request
source§type Cookie = QueryExtensionCookie
type Cookie = QueryExtensionCookie
Default cookie type for the request, as returned by Connection::send_request.
source§type CookieUnchecked = QueryExtensionCookieUnchecked
type CookieUnchecked = QueryExtensionCookieUnchecked
Unchecked cookie type for the request, as returned by Connection::send_request_unchecked.
Auto Trait Implementations§
impl<'a> Freeze for QueryExtension<'a>
impl<'a> RefUnwindSafe for QueryExtension<'a>
impl<'a> Send for QueryExtension<'a>
impl<'a> Sync for QueryExtension<'a>
impl<'a> Unpin for QueryExtension<'a>
impl<'a> UnwindSafe for QueryExtension<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)