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<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Request
impl Serialize for Request
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more