pub enum OutputEvent {
Start {
dev_flags: Vec<DevFlags>,
},
Stop,
Open,
Close,
Output {
data: Vec<u8>,
},
GetReport {
id: u32,
report_number: u8,
report_type: ReportType,
},
SetReport {
id: u32,
report_number: u8,
report_type: ReportType,
data: Vec<u8>,
},
}
Expand description
See https://www.kernel.org/doc/html/latest/hid/uhid.html#read
Variants§
Trait Implementations§
Source§impl TryFrom<uhid_event> for OutputEvent
impl TryFrom<uhid_event> for OutputEvent
Source§type Error = StreamError
type Error = StreamError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for OutputEvent
impl RefUnwindSafe for OutputEvent
impl Send for OutputEvent
impl Sync for OutputEvent
impl Unpin for OutputEvent
impl UnwindSafe for OutputEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more