pub struct LinuxBackend;Trait Implementations§
Source§impl AutomationBackend for LinuxBackend
impl AutomationBackend for LinuxBackend
Source§fn screenshot<'life0, 'life1, 'async_trait>(
&'life0 self,
_window: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = PunchResult<ScreenshotResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn screenshot<'life0, 'life1, 'async_trait>(
&'life0 self,
_window: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = PunchResult<ScreenshotResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Capture a screenshot of the full screen or a specific window. Read more
Source§fn ui_screenshot<'life0, 'life1, 'async_trait>(
&'life0 self,
_element_id: Option<&'life1 str>,
_bounds: Option<(i32, i32, u32, u32)>,
) -> Pin<Box<dyn Future<Output = PunchResult<ScreenshotResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ui_screenshot<'life0, 'life1, 'async_trait>(
&'life0 self,
_element_id: Option<&'life1 str>,
_bounds: Option<(i32, i32, u32, u32)>,
) -> Pin<Box<dyn Future<Output = PunchResult<ScreenshotResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Capture a screenshot of a specific UI region by bounds. Read more
Source§fn app_ocr<'life0, 'life1, 'async_trait>(
&'life0 self,
_app: &'life1 str,
) -> Pin<Box<dyn Future<Output = PunchResult<OcrResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn app_ocr<'life0, 'life1, 'async_trait>(
&'life0 self,
_app: &'life1 str,
) -> Pin<Box<dyn Future<Output = PunchResult<OcrResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extract text from an app window using OCR. Read more
Source§fn list_windows<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PunchResult<Vec<WindowInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_windows<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PunchResult<Vec<WindowInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all visible windows with their titles and owning apps.
Source§fn find_ui_elements<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_app: &'life1 str,
_selector: &'life2 UiSelector,
) -> Pin<Box<dyn Future<Output = PunchResult<Vec<UiElement>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_ui_elements<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_app: &'life1 str,
_selector: &'life2 UiSelector,
) -> Pin<Box<dyn Future<Output = PunchResult<Vec<UiElement>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query the accessibility tree for UI elements matching a selector.
Source§fn click_element<'life0, 'life1, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = PunchResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn click_element<'life0, 'life1, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = PunchResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Click a UI element by its element ID (from
find_ui_elements).Source§fn type_text<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
_text: &'life2 str,
) -> Pin<Box<dyn Future<Output = PunchResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn type_text<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
_text: &'life2 str,
) -> Pin<Box<dyn Future<Output = PunchResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Type text into a UI element by its element ID.
Source§fn read_element_attribute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
_attribute: &'life2 str,
) -> Pin<Box<dyn Future<Output = PunchResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_element_attribute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_element_id: &'life1 str,
_attribute: &'life2 str,
) -> Pin<Box<dyn Future<Output = PunchResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read an accessibility attribute from a UI element.
Auto Trait Implementations§
impl Freeze for LinuxBackend
impl RefUnwindSafe for LinuxBackend
impl Send for LinuxBackend
impl Sync for LinuxBackend
impl Unpin for LinuxBackend
impl UnsafeUnpin for LinuxBackend
impl UnwindSafe for LinuxBackend
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> 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