pub struct Keyboard { /* private fields */ }Expand description
Virtual keyboard device
Implementations§
Source§impl Keyboard
impl Keyboard
Sourcepub fn release_key(&mut self, key: Key) -> Result<()>
pub fn release_key(&mut self, key: Key) -> Result<()>
Release a key
Sourcepub fn press_modifiers(&mut self, mods: Modifiers) -> Result<()>
pub fn press_modifiers(&mut self, mods: Modifiers) -> Result<()>
Press modifier(s)
Sourcepub fn release_modifiers(&mut self, mods: Modifiers) -> Result<()>
pub fn release_modifiers(&mut self, mods: Modifiers) -> Result<()>
Release modifier(s)
Sourcepub fn press_combo(&mut self, mods: Modifiers, key: Key) -> Result<()>
pub fn press_combo(&mut self, mods: Modifiers, key: Key) -> Result<()>
Press key combination (e.g., Ctrl+C)
Sourcepub fn release_all(&mut self) -> Result<()>
pub fn release_all(&mut self) -> Result<()>
Release all keys
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keyboard
impl !RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnsafeUnpin for Keyboard
impl !UnwindSafe for Keyboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more