Struct virtio_drivers::VirtIOInput
source · [−]Expand description
Virtual human interface devices such as keyboards, mice and tablets.
An instance of the virtio device represents one such input device. Device behavior mirrors that of the evdev layer in Linux, making pass-through implementations on top of evdev easy.
Implementations
sourceimpl<H: Hal, T: Transport> VirtIOInput<H, T>
impl<H: Hal, T: Transport> VirtIOInput<H, T>
sourcepub fn ack_interrupt(&mut self) -> bool
pub fn ack_interrupt(&mut self) -> bool
Acknowledge interrupt and process events.
sourcepub fn pop_pending_event(&mut self) -> Option<InputEvent>
pub fn pop_pending_event(&mut self) -> Option<InputEvent>
Pop the pending event.
sourcepub fn query_config_select(
&mut self,
select: InputConfigSelect,
subsel: u8,
out: &mut [u8]
) -> u8
pub fn query_config_select(
&mut self,
select: InputConfigSelect,
subsel: u8,
out: &mut [u8]
) -> u8
Query a specific piece of information by select and subsel, and write
result to out, return the result size.
Auto Trait Implementations
impl<H, T> RefUnwindSafe for VirtIOInput<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> !Send for VirtIOInput<H, T>
impl<H, T> !Sync for VirtIOInput<H, T>
impl<H, T> Unpin for VirtIOInput<H, T>where
H: Unpin,
T: Unpin,
impl<H, T> UnwindSafe for VirtIOInput<H, T>where
H: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more