#[repr(u8)]pub enum LiveSetting {
Off = 0,
Polite = 1,
Assertive = 2,
}Expand description
Live-region politeness for screen-reader announcements.
Mirrors the W3C ARIA aria-live values:
LiveSetting::Off— content updates are not announced.LiveSetting::Polite— wait for the screen reader to finish its current utterance, then announce.LiveSetting::Assertive— interrupt the current utterance and announce immediately. Reserve for urgent feedback (errors, time-critical alerts).
The variant ordering matches AccessKit’s accesskit::Live enum so that
From is a trivial 1:1 mapping.
Variants§
Off = 0
Updates to this node are not announced.
Polite = 1
Updates are queued behind the screen reader’s current utterance.
Assertive = 2
Updates interrupt the current utterance.
Trait Implementations§
Source§impl Clone for LiveSetting
impl Clone for LiveSetting
Source§fn clone(&self) -> LiveSetting
fn clone(&self) -> LiveSetting
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 LiveSetting
Source§impl Debug for LiveSetting
impl Debug for LiveSetting
Source§impl Default for LiveSetting
impl Default for LiveSetting
Source§fn default() -> LiveSetting
fn default() -> LiveSetting
Returns the “default value” for a type. Read more
impl Eq for LiveSetting
Source§impl From<LiveSetting> for Live
impl From<LiveSetting> for Live
Source§fn from(value: LiveSetting) -> Self
fn from(value: LiveSetting) -> Self
Converts to this type from the input type.
Source§impl Hash for LiveSetting
impl Hash for LiveSetting
Source§impl PartialEq for LiveSetting
impl PartialEq for LiveSetting
Source§fn eq(&self, other: &LiveSetting) -> bool
fn eq(&self, other: &LiveSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LiveSetting
Auto Trait Implementations§
impl Freeze for LiveSetting
impl RefUnwindSafe for LiveSetting
impl Send for LiveSetting
impl Sync for LiveSetting
impl Unpin for LiveSetting
impl UnsafeUnpin for LiveSetting
impl UnwindSafe for LiveSetting
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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