#[repr(C)]pub struct Input { /* private fields */ }
Expand description
Interface for text-based input devices.
Implementations
sourceimpl Input
impl Input
sourcepub fn reset(&mut self, extended_verification: bool) -> Result
pub fn reset(&mut self, extended_verification: bool) -> Result
Resets the input device hardware.
The extended_verification
parameter is used to request that UEFI
performs an extended check and reset of the input device.
Errors
DeviceError
if the device is malfunctioning and cannot be reset.
sourcepub fn read_key(&mut self) -> Result<Option<Key>>
pub fn read_key(&mut self) -> Result<Option<Key>>
Reads the next keystroke from the input device, if any.
Use wait_for_key_event()
with the BootServices::wait_for_event()
interface in order to wait for a key to be pressed.
Errors
DeviceError
if there was an issue with the input device
sourcepub fn wait_for_key_event(&self) -> &Event
pub fn wait_for_key_event(&self) -> &Event
Event to be used with BootServices::wait_for_event()
in order to wait
for a key to be available
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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