Skip to main content

HidBackend

Trait HidBackend 

Source
pub trait HidBackend: Send + Sync {
    // Required methods
    fn send_report(&self, report: &[u8]) -> Result<()>;
    fn destroy(self: Box<Self>) -> Result<()>;
}
Expand description

HID backend trait

Required Methods§

Source

fn send_report(&self, report: &[u8]) -> Result<()>

Send HID report

Source

fn destroy(self: Box<Self>) -> Result<()>

Destroy the device

Implementors§