Trait ExtInfoProvider
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§
fn get_from_major_opcode(
&self,
major_opcode: u8,
) -> Option<(&str, ExtensionInformation)>
fn get_from_major_opcode( &self, major_opcode: u8, ) -> Option<(&str, ExtensionInformation)>
Returns the information of the extension that whose
opcode is major_opcode
.
fn get_from_event_code(
&self,
event_code: u8,
) -> Option<(&str, ExtensionInformation)>
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
.
fn get_from_error_code(
&self,
error_code: u8,
) -> Option<(&str, ExtensionInformation)>
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
.