Skip to main content

AccessibilityAuditClient

Struct AccessibilityAuditClient 

Source
pub struct AccessibilityAuditClient<S> { /* private fields */ }

Implementations§

Source§

impl<S> AccessibilityAuditClient<S>
where S: AsyncRead + AsyncWrite + Unpin + Send,

Source

pub fn new(stream: S, product_major_version: u64) -> Self

Source

pub fn new_rsd(stream: S, product_major_version: u64) -> Self

Source

pub fn new_with_handshake( stream: S, product_major_version: u64, handshake: AccessibilityAuditHandshake, ) -> Self

Source

pub async fn publish_capabilities( &mut self, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn capabilities( &mut self, ) -> Result<Vec<String>, AccessibilityAuditError>

Source

pub async fn api_version(&mut self) -> Result<u64, AccessibilityAuditError>

Source

pub async fn supported_audit_types( &mut self, ) -> Result<JsonValue, AccessibilityAuditError>

Source

pub async fn settings(&mut self) -> Result<JsonValue, AccessibilityAuditError>

Source

pub async fn set_app_monitoring_enabled( &mut self, enabled: bool, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn set_monitored_event_type( &mut self, event_type: u64, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn set_show_ignored_elements( &mut self, enabled: bool, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn set_show_visuals( &mut self, enabled: bool, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn set_audit_target_pid( &mut self, pid: u64, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn focus_on_element(&mut self) -> Result<(), AccessibilityAuditError>

Source

pub async fn preview_on_element( &mut self, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn highlight_issue(&mut self) -> Result<(), AccessibilityAuditError>

Source

pub async fn move_focus( &mut self, direction: MoveDirection, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn next_event( &mut self, ) -> Result<AuditEvent, AccessibilityAuditError>

Source

pub async fn wait_for_event( &mut self, selector: &str, ) -> Result<AuditEvent, AccessibilityAuditError>

Source

pub async fn wait_for_monitored_event_type_changed( &mut self, ) -> Result<(), AccessibilityAuditError>

Source

pub async fn run_audit( &mut self, audit_types: &[String], ) -> Result<JsonValue, AccessibilityAuditError>

Source

pub async fn next_focus_change( &mut self, ) -> Result<FocusElement, AccessibilityAuditError>

Source

pub async fn next_focus_change_with_idle_timeout( &mut self, idle_timeout: Duration, ) -> Result<Option<FocusElement>, AccessibilityAuditError>

Source

pub async fn navigate( &mut self, direction: MoveDirection, timeout: Duration, ) -> Result<Option<FocusElement>, AccessibilityAuditError>

Navigate focus in the given direction and return the newly focused element.

Source

pub async fn perform_action_activate( &mut self, element_bytes: &[u8], ) -> Result<(), AccessibilityAuditError>

Perform the Activate action on the currently focused element.

element_bytes should be the raw platform identifier bytes from FocusElement.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more