[−][src]Struct uefi::proto::console::text::Input
Interface for text-based input devices.
Implementations
impl Input
[src]
pub fn reset(&mut self, extended_verification: bool) -> Result
[src]
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.
pub fn read_key(&mut self) -> Result<Option<Key>>
[src]
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
pub fn wait_for_key_event(&self) -> Event
[src]
Event to be used with BootServices::wait_for_event()
in order to wait
for a key to be available
Trait Implementations
impl Identify for Input
[src]
impl Protocol for Input
[src]
impl !Send for Input
[src]
impl !Sync for Input
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,