Skip to main content

Request

Enum Request 

Source
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

§x: f32

X coordinate of the region (relative to window)

§y: f32

Y coordinate of the region (relative to window)

§width: f32

Width of the region

§height: f32

Height of the region

§

ClickAt

Click at specific screen coordinates

Fields

§x: f32

X coordinate (relative to window)

§y: f32

Y coordinate (relative to window)

§button: MouseButton

Mouse button to click

§

KeyboardInput

Send keyboard input

Fields

§key: String

Key to press (e.g., “Enter”, “Tab”, “a”, “Ctrl+C”)

§

Scroll

Scroll at specific coordinates

Fields

§x: f32

X coordinate (relative to window)

§y: f32

Y coordinate (relative to window)

§delta_x: f32

Horizontal scroll delta

§delta_y: f32

Vertical scroll delta

§

MoveMouse

Move mouse to specific coordinates (for hover effects)

Fields

§x: f32

X coordinate (relative to window)

§y: f32

Y coordinate (relative to window)

§

Drag

Drag from one position to another

Fields

§start_x: f32

Start X coordinate

§start_y: f32

Start Y coordinate

§end_x: f32

End X coordinate

§end_y: f32

End Y coordinate

§button: MouseButton

Mouse button to use

§

DoubleClick

Double click at specific screen coordinates

Fields

§x: f32

X coordinate (relative to window)

§y: f32

Y coordinate (relative to window)

§button: MouseButton

Mouse button to click

§

HighlightElement

Highlight an element with a colored border

Fields

§x: f32

Bounding box x coordinate

§y: f32

Bounding box y coordinate

§width: f32

Bounding box width

§height: f32

Bounding box height

§color: [u8; 4]

Color as RGBA (0-255 each)

§duration_ms: u64

Duration in milliseconds (0 = until cleared)

§

ClearHighlights

Clear all highlights

§

GetLogs

Get recent log entries

Fields

§level: Option<String>

Minimum log level to return (TRACE, DEBUG, INFO, WARN, ERROR) If None, returns all levels

§limit: Option<usize>

Maximum number of entries to return

§

ClearLogs

Clear the log buffer

§

GetFrameStats

Get current frame statistics

§

StartPerfRecording

Start recording performance data

Fields

§duration_ms: u64

Duration to record in milliseconds (0 = until stopped)

§

GetPerfReport

Stop and get performance report

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,