Trait jvs_packets::ReportField
source · 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 add’s 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.
Object Safety§
This trait is not object safe.