pub enum Request {
Show 16 variants
Ping,
TakeScreenshot,
TakeScreenshotRegion {
x: f32,
y: f32,
width: f32,
height: f32,
},
ClickAt {
x: f32,
y: f32,
button: MouseButton,
},
KeyboardInput {
key: String,
},
Scroll {
x: f32,
y: f32,
delta_x: f32,
delta_y: f32,
},
MoveMouse {
x: f32,
y: f32,
},
Drag {
start_x: f32,
start_y: f32,
end_x: f32,
end_y: f32,
button: MouseButton,
},
DoubleClick {
x: f32,
y: f32,
button: MouseButton,
},
HighlightElement {
x: f32,
y: f32,
width: f32,
height: f32,
color: [u8; 4],
duration_ms: u64,
},
ClearHighlights,
GetLogs {
level: Option<String>,
limit: Option<usize>,
},
ClearLogs,
GetFrameStats,
StartPerfRecording {
duration_ms: u64,
},
GetPerfReport,
}Expand description
Request types for IPC communication
These are operations that require direct client integration and cannot be performed via AT-SPI.
Variants§
Ping
Ping the client to check connection
TakeScreenshot
Request a screenshot of the application window
TakeScreenshotRegion
Request a screenshot of a specific region of the application window
Fields
ClickAt
Click at specific screen coordinates
Fields
Mouse button to click
KeyboardInput
Send keyboard input
Scroll
Scroll at specific coordinates
Fields
MoveMouse
Move mouse to specific coordinates (for hover effects)
Drag
Drag from one position to another
Fields
Mouse button to use
DoubleClick
Double click at specific screen coordinates
Fields
Mouse button to click
HighlightElement
Highlight an element with a colored border
Fields
ClearHighlights
Clear all highlights
GetLogs
Get recent log entries
Fields
ClearLogs
Clear the log buffer
GetFrameStats
Get current frame statistics
StartPerfRecording
Start recording performance data
GetPerfReport
Stop and get performance report
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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