pub enum Assistive {
Unknown,
None,
Listening,
}Expand description
Whether assistive technology is listening: the difference between an
alert that blinks and one that announces. Listening is “an
accessibility client has asked this window for its tree”, which is the
one signal the platform adapters give and the moment the runner starts
deriving trees.
None is “the bridge is up and nobody has asked”; Unknown is “there
is no bridge” — a headless core, a driver built without the
accesskit feature, a C host that never called the setter.
Two limits are the reading’s, not the row’s. Any client counts: a
probe, an accessibility inspector, a test harness driving the AX API
and VoiceOver alike all ask for the tree, and nothing tells them apart.
And whether it ever falls back to None is the platform’s: only the
AT-SPI adapter (Unix) reports deactivation, when the session’s
accessibility bus goes away; on macOS and Windows the adapters never
call the deactivation handler, so once a client has asked the reading
stays Listening for the window’s life.
Variants§
Implementations§
Source§impl Assistive
impl Assistive
Sourcepub const ALL: &'static [Assistive]
pub const ALL: &'static [Assistive]
Wire order, as Appearance::ALL: unknown is 0.
pub fn name(self) -> &'static str
pub fn parse(name: &str) -> Option<Self>
pub fn from_code(code: u32) -> Option<Self>
Sourcepub fn is_listening(self) -> bool
pub fn is_listening(self) -> bool
Whether something is listening. Unknown answers false, as
MotionPref::is_reduced does: a host that cannot tell gets the
blink it would have had before this field existed.
Trait Implementations§
impl Copy for Assistive
impl Eq for Assistive
impl StructuralPartialEq for Assistive
Auto Trait Implementations§
impl Freeze for Assistive
impl RefUnwindSafe for Assistive
impl Send for Assistive
impl Sync for Assistive
impl Unpin for Assistive
impl UnsafeUnpin for Assistive
impl UnwindSafe for Assistive
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.