Trait AsyncHidWrite

Source
pub trait AsyncHidWrite {
    // Required method
    fn write_output_report<'a>(
        &'a mut self,
        buf: &'a [u8],
    ) -> impl Future<Output = HidResult<()>> + Send + 'a;
}
Expand description

Provides functionality for writing to HID devices

Required Methods§

Source

fn write_output_report<'a>( &'a mut self, buf: &'a [u8], ) -> impl Future<Output = HidResult<()>> + Send + 'a

Write an output report to a HID device

If the submitted report is larger that what the device expects it might be truncated depending on the backend The first byte must be the report id. If the device does not use numbered report the first by must be set to 0x0

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§