pub trait ReportField: Packet {
const REPORT_INDEX: usize;
// Provided methods
fn report(&self) -> Report { ... }
fn report_raw(&self) -> u8 { ... }
fn set_report(&mut self, report: impl Into<u8>) -> &mut Self { ... }
}Expand description
A trait that adds additional setters for Response Packets.
All responses from jvs has report code that will indicate whether the request was processed successfully or not.
Required Associated Constants§
const REPORT_INDEX: usize
Provided Methods§
fn report_raw(&self) -> u8
Sourcefn set_report(&mut self, report: impl Into<u8>) -> &mut Self
fn set_report(&mut self, report: impl Into<u8>) -> &mut Self
Sets a report code.
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.