Enum uhid_virt::InputEvent
source · pub enum InputEvent<'a> {
Create(CreateParams),
Destroy,
Input {
data: &'a [u8],
},
Output {
data: Vec<u8>,
},
OutputEv {
type_: u16,
code: u16,
value: i32,
},
GetReportReply {
id: u32,
err: u16,
data: Vec<u8>,
},
SetReportReply {
id: u32,
err: u16,
},
Feature {
id: u32,
report_num: u8,
},
FeatureAnswer {
id: u32,
err: u16,
data: Vec<u8>,
},
SetReport {
id: u32,
report_num: u8,
data: Vec<u8>,
},
}
Expand description
See https://www.kernel.org/doc/html/latest/hid/uhid.html#write
Variants§
Create(CreateParams)
Destroy
Input
Output
OutputEv
GetReportReply
SetReportReply
Feature
FeatureAnswer
SetReport
Trait Implementations§
source§impl<'a> From<InputEvent<'a>> for [u8; 4380]
impl<'a> From<InputEvent<'a>> for [u8; 4380]
source§fn from(input: InputEvent<'a>) -> Self
fn from(input: InputEvent<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InputEvent<'a>> for uhid_event
impl<'a> From<InputEvent<'a>> for uhid_event
source§fn from(input: InputEvent<'a>) -> Self
fn from(input: InputEvent<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InputEvent<'a>
impl<'a> Send for InputEvent<'a>
impl<'a> Sync for InputEvent<'a>
impl<'a> Unpin for InputEvent<'a>
impl<'a> UnwindSafe for InputEvent<'a>
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