[][src]Struct uefi::proto::console::text::Input

#[repr(C)]pub struct Input { /* fields omitted */ }

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

impl Unpin for Input

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.