Trait InterfaceClass
Source pub trait InterfaceClass<'a> {
Show 13 methods
// Required methods
fn hid_descriptor_body(&self) -> [u8; 7];
fn report_descriptor(&self) -> ReportDescriptor<'_>;
fn id(&self) -> InterfaceNumber;
fn write_descriptors(&self, writer: &mut DescriptorWriter<'_>) -> Result<()>;
fn get_string(
&self,
index: StringIndex,
_lang_id: LangID,
) -> Option<&'a str>;
fn reset(&mut self);
fn set_report(&mut self, data: &[u8]) -> Result<()>;
fn get_report(&self, data: &mut [u8]) -> Result<usize>;
fn get_report_ack(&mut self) -> Result<()>;
fn set_idle(&mut self, report_id: u8, value: u8);
fn get_idle(&self, report_id: u8) -> u8;
fn set_protocol(&mut self, protocol: HidProtocol);
fn get_protocol(&self) -> HidProtocol;
}