pub trait RawWriter: Send + Sync {
// Required method
fn write_output_report<'life0, 'life1, 'async_trait>(
&'life0 mut self,
report: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A raw output-report sink, for reports the HID++ framing cannot model.
The HID++ channel covers reports 0x10/0x11/0x12 with request/response
correlation. A few devices need a bare output report written with no reply
expected — Logitech’s Litra lights, driven over their own vendor protocol —
and that is all this is for.
Required Methods§
Sourcefn write_output_report<'life0, 'life1, 'async_trait>(
&'life0 mut self,
report: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_output_report<'life0, 'life1, 'async_trait>(
&'life0 mut self,
report: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write one output report, report id included as the first byte.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".