Trait x11rb::x11_utils::ExtInfoProvider

source ·
pub trait ExtInfoProvider {
    // Required methods
    fn get_from_major_opcode(
        &self,
        major_opcode: u8,
    ) -> Option<(&str, ExtensionInformation)>;
    fn get_from_event_code(
        &self,
        event_code: u8,
    ) -> Option<(&str, ExtensionInformation)>;
    fn get_from_error_code(
        &self,
        error_code: u8,
    ) -> Option<(&str, ExtensionInformation)>;
}
Expand description

Trait to provide information about extensions.

Required Methods§

source

fn get_from_major_opcode( &self, major_opcode: u8, ) -> Option<(&str, ExtensionInformation)>

Returns the information of the extension that whose opcode is major_opcode.

source

fn get_from_event_code( &self, event_code: u8, ) -> Option<(&str, ExtensionInformation)>

Returns the information of the extension that whose event number range includes event_number.

source

fn get_from_error_code( &self, error_code: u8, ) -> Option<(&str, ExtensionInformation)>

Returns the information of the extension that whose error number range includes error_number.

Implementors§