pub struct LinuxProvider { /* private fields */ }Expand description
Linux accessibility provider using AT-SPI2 over D-Bus.
Implementations§
Trait Implementations§
Source§impl EventProvider for LinuxProvider
impl EventProvider for LinuxProvider
Source§fn subscribe(
&self,
target: &AppTarget,
filter: EventFilter,
) -> Result<Subscription>
fn subscribe( &self, target: &AppTarget, filter: EventFilter, ) -> Result<Subscription>
Subscribe to events matching the given filter.
Returns a stream of events and a handle to manage the subscription.
Dropping the
Subscription unsubscribes automatically (RAII).Source§fn wait_for_event(
&self,
target: &AppTarget,
filter: EventFilter,
timeout: Duration,
) -> Result<Event>
fn wait_for_event( &self, target: &AppTarget, filter: EventFilter, timeout: Duration, ) -> Result<Event>
Wait for a single event matching the filter, with timeout.
Source§impl Provider for LinuxProvider
impl Provider for LinuxProvider
Source§fn get_app_tree(&self, target: &AppTarget, opts: &QueryOptions) -> Result<Tree>
fn get_app_tree(&self, target: &AppTarget, opts: &QueryOptions) -> Result<Tree>
Snapshot a specific application’s accessibility tree.
Source§fn get_all_apps(&self, opts: &QueryOptions) -> Result<Tree>
fn get_all_apps(&self, opts: &QueryOptions) -> Result<Tree>
Snapshot all running applications (shallow).
Source§fn perform_action(
&self,
tree: &Tree,
node: &Node,
action: Action,
data: Option<ActionData>,
) -> Result<()>
fn perform_action( &self, tree: &Tree, node: &Node, action: Action, data: Option<ActionData>, ) -> Result<()>
Perform an action on an element from a specific snapshot. Read more
Source§fn check_permissions(&self) -> Result<PermissionStatus>
fn check_permissions(&self) -> Result<PermissionStatus>
Check if accessibility permissions are granted.
Auto Trait Implementations§
impl !Freeze for LinuxProvider
impl !RefUnwindSafe for LinuxProvider
impl Send for LinuxProvider
impl Sync for LinuxProvider
impl Unpin for LinuxProvider
impl UnsafeUnpin for LinuxProvider
impl !UnwindSafe for LinuxProvider
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