pub enum Keyboard {
Press(Key),
Release(Key),
Type(Key),
Typewrite(String),
}Expand description
A keyboard interaction.
Variants§
Press(Key)
A key was pressed.
Release(Key)
A key was released.
Type(Key)
A key was “typed” (press and released).
Typewrite(String)
A bunch of text was typed.
Trait Implementations§
impl StructuralPartialEq for Keyboard
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