query_version

Function query_version 

Source
pub async fn query_version<Conn>(
    conn: &Conn,
    major_version: u8,
    minor_version: u8,
) -> Result<Cookie<'_, Conn, QueryVersionReply>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Queries the version of this extension.

Queries the version of this extension. You must do this before using any functionality it provides.

ยงFields

  • major_version - The major version of the extension. Check that it is compatible with the XCB_DBE_MAJOR_VERSION that your code is compiled with.
  • minor_version - The minor version of the extension. Check that it is compatible with the XCB_DBE_MINOR_VERSION that your code is compiled with.