#[non_exhaustive]pub enum KeyAction {
Pause {
duration: Duration,
},
Up {
value: char,
},
Down {
value: char,
},
}
Expand description
An action performed with a keyboard.
See 17.4.2 Keyboard Actions of the WebDriver standard.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pause
Pause action. Useful for adding pauses between other key actions.
Up
Key up action.
Down
Key down action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnwindSafe for KeyAction
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