#[repr(C)]pub struct Pointer<'boot> { /* private fields */ }
Expand description
Provides information about a pointer device.
Implementations
sourceimpl<'boot> Pointer<'boot>
impl<'boot> Pointer<'boot>
sourcepub fn reset(&mut self, extended_verification: bool) -> Result
pub fn reset(&mut self, extended_verification: bool) -> Result
Resets the pointer 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_state(&mut self) -> Result<Option<PointerState>>
pub fn read_state(&mut self) -> Result<Option<PointerState>>
Retrieves the pointer device’s current state, if a state change occured since the last time this function was called.
Use wait_for_input_event()
with the BootServices::wait_for_event()
interface in order to wait for input from the pointer device.
Errors
DeviceError
if there was an issue with the pointer device.
sourcepub fn wait_for_input_event(&self) -> &Event
pub fn wait_for_input_event(&self) -> &Event
Event to be used with BootServices::wait_for_event()
in order to wait
for input from the pointer device
sourcepub fn mode(&self) -> &PointerMode
pub fn mode(&self) -> &PointerMode
Returns a reference to the pointer device information.
Trait Implementations
impl<'boot> Protocol for Pointer<'boot>
impl<'boot> !Send for Pointer<'boot>
impl<'boot> !Sync for Pointer<'boot>
Auto Trait Implementations
impl<'boot> RefUnwindSafe for Pointer<'boot>
impl<'boot> Unpin for Pointer<'boot>
impl<'boot> UnwindSafe for Pointer<'boot>
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