pub enum ScreenReaderState {
Unknown,
Inactive,
Active,
}Expand description
Whether an assistive technology is driving the app, as reported by the platform.
Lives here rather than in teksilo-platform because Environment is a
teksilo-core type and core cannot name platform’s
AccessibilityPreferences; the platform layer pushes the value in exactly
as it pushes Environment::prefers_reduced_motion.
Variants§
Unknown
The platform does not expose the state, or has not been asked yet. The default — behaviour is unchanged from before the field existed.
Inactive
No assistive technology is attached.
Active
An assistive technology is attached and reading the tree.
Trait Implementations§
Source§impl Clone for ScreenReaderState
impl Clone for ScreenReaderState
Source§fn clone(&self) -> ScreenReaderState
fn clone(&self) -> ScreenReaderState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScreenReaderState
Source§impl Debug for ScreenReaderState
impl Debug for ScreenReaderState
Source§impl Default for ScreenReaderState
impl Default for ScreenReaderState
Source§fn default() -> ScreenReaderState
fn default() -> ScreenReaderState
Returns the “default value” for a type. Read more
impl Eq for ScreenReaderState
Source§impl Hash for ScreenReaderState
impl Hash for ScreenReaderState
Source§impl PartialEq for ScreenReaderState
impl PartialEq for ScreenReaderState
impl StructuralPartialEq for ScreenReaderState
Auto Trait Implementations§
impl Freeze for ScreenReaderState
impl RefUnwindSafe for ScreenReaderState
impl Send for ScreenReaderState
impl Sync for ScreenReaderState
impl Unpin for ScreenReaderState
impl UnsafeUnpin for ScreenReaderState
impl UnwindSafe for ScreenReaderState
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