pub enum AutomationAction<'a> {
Button {
button: Button,
pressed: bool,
},
Finger {
x: u32,
y: u32,
touched: bool,
},
Setbool {
varname: Cow<'a, str>,
value: bool,
},
Exit,
}Expand description
Speculos automation actions.
Variants§
Button
Press or release a button.
Fields
The button whose pressed status is to be updated.
Finger
Touch or release the screen.
Fields
Setbool
Set a variable to a boolean value.
Exit
Exit speculos.
Trait Implementations§
Source§impl<'a> Clone for AutomationAction<'a>
impl<'a> Clone for AutomationAction<'a>
Source§fn clone(&self) -> AutomationAction<'a>
fn clone(&self) -> AutomationAction<'a>
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<'a> Debug for AutomationAction<'a>
impl<'a> Debug for AutomationAction<'a>
Source§impl<'a> PartialEq for AutomationAction<'a>
impl<'a> PartialEq for AutomationAction<'a>
Source§impl<'a> Serialize for AutomationAction<'a>
impl<'a> Serialize for AutomationAction<'a>
impl<'a> Eq for AutomationAction<'a>
impl<'a> StructuralPartialEq for AutomationAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for AutomationAction<'a>
impl<'a> RefUnwindSafe for AutomationAction<'a>
impl<'a> Send for AutomationAction<'a>
impl<'a> Sync for AutomationAction<'a>
impl<'a> Unpin for AutomationAction<'a>
impl<'a> UnwindSafe for AutomationAction<'a>
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