pub enum Action {
Show 14 variants
Screenshot,
Zoom {
top_left: Point,
bottom_right: Point,
},
Click {
at: Option<Point>,
button: MouseButton,
count: u8,
modifiers: Vec<CompactString>,
},
Drag {
path: Vec<Point>,
modifiers: Vec<CompactString>,
},
Move {
at: Point,
modifiers: Vec<CompactString>,
},
ScrollPixels {
at: Point,
x: i32,
y: i32,
modifiers: Vec<CompactString>,
},
ScrollTicks {
at: Option<Point>,
direction: ScrollDirection,
amount: u32,
modifiers: Vec<CompactString>,
},
Key {
keys: Vec<CompactString>,
repeat: u8,
},
HoldKey {
keys: Vec<CompactString>,
duration: Duration,
},
LeftMouseDown,
LeftMouseUp,
CursorPosition,
Type(String),
Wait(Duration),
}Expand description
A provider-neutral request to observe or interact with the target.
Variants§
Screenshot
Capture the target viewport.
Zoom
Capture a rectangle within the viewport.
Fields
Click
Deliver one or more clicks.
Drag
Deliver a drag along an ordered path.
Fields
§
modifiers: Vec<CompactString>Modifier keys held during the action.
Move
Move the pointer to the given position.
Fields
§
modifiers: Vec<CompactString>Modifier keys held during pointer movement.
ScrollPixels
Scroll by a signed pixel offset.
Fields
§
modifiers: Vec<CompactString>Modifier keys held during the action.
ScrollTicks
Scroll by wheel ticks.
Fields
§
direction: ScrollDirectionDirection of movement.
§
modifiers: Vec<CompactString>Modifier keys held during the action.
Key
Press a key or chord.
HoldKey
Hold a key or chord before releasing it.
LeftMouseDown
Press the left mouse button at the current position.
LeftMouseUp
Release the left mouse button.
CursorPosition
Query the current pointer position.
Type(String)
Insert literal text.
Wait(Duration)
Wait for a duration.
Auto Trait Implementations§
impl Forget for Action
impl Freeze for Action
impl Move for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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