Struct appium_client::commands::keyboard::KeyEvent
source · pub struct KeyEvent {
pub keycode: AndroidKey,
pub metastate: u32,
pub flags: u32,
}
Fields§
§keycode: AndroidKey
§metastate: u32
§flags: u32
Implementations§
source§impl KeyEvent
impl KeyEvent
pub fn new(keycode: AndroidKey) -> KeyEvent
pub fn with_metamodifier(self, metamodifier: AndroidKeyMetaModifier) -> Self
pub fn add_metamodifier(&mut self, metamodifier: AndroidKeyMetaModifier)
pub fn remove_metamodifier(&mut self, metamodifier: AndroidKeyMetaModifier)
pub fn with_flag(self, flag: AndroidKeyFlag) -> Self
pub fn add_flag(&mut self, flag: AndroidKeyMetaModifier)
pub fn remove_flag(&mut self, flag: AndroidKeyMetaModifier)
Trait Implementations§
source§impl From<AndroidKey> for KeyEvent
impl From<AndroidKey> for KeyEvent
source§fn from(value: AndroidKey) -> Self
fn from(value: AndroidKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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