pub enum TestCommand {
Tap {
x: f32,
y: f32,
},
TapText {
text: String,
},
Scroll {
x: f32,
y: f32,
dx: f32,
dy: f32,
},
TypeText {
text: String,
},
PressKey {
key: String,
modifiers: u8,
},
Screenshot {
path: String,
},
GetText {},
GetTree {},
Wait {
ms: u64,
},
Pump {},
Quit {},
}Expand description
A command sent from the test client to the running application.
Serialized with #[serde(tag = "cmd")]. See the crate-level docs for
the full command reference.
Variants§
Trait Implementations§
Source§impl Clone for TestCommand
impl Clone for TestCommand
Source§fn clone(&self) -> TestCommand
fn clone(&self) -> TestCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestCommand
impl Debug for TestCommand
Source§impl<'de> Deserialize<'de> for TestCommand
impl<'de> Deserialize<'de> for TestCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestCommand
impl RefUnwindSafe for TestCommand
impl Send for TestCommand
impl Sync for TestCommand
impl Unpin for TestCommand
impl UnsafeUnpin for TestCommand
impl UnwindSafe for TestCommand
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