Struct virtio_drivers::device::input::InputEvent
source · Expand description
Both queues use the same virtio_input_event struct. type, code and value
are filled according to the Linux input layer (evdev) interface.
Fields§
§event_type: u16Event type.
code: u16Event code.
value: u32Event value.
Trait Implementations§
source§impl AsBytes for InputEvent
impl AsBytes for InputEvent
source§fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
source§impl Clone for InputEvent
impl Clone for InputEvent
source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InputEvent
impl Debug for InputEvent
source§impl Default for InputEvent
impl Default for InputEvent
source§fn default() -> InputEvent
fn default() -> InputEvent
Returns the “default value” for a type. Read more
source§impl FromBytes for InputEvent
impl FromBytes for InputEvent
source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes.