pub struct Announcement {
pub seq: u64,
pub text: String,
pub assertive: bool,
}Expand description
A captured live-region announcement — the text a screen reader would
have spoken when a Live::{Polite,Assertive} node’s value (or label)
changed.
Teksilo has no OS accessibility layer in headless mode, and even with
one there is no in-process way to observe what the platform spoke.
crate::WidgetTree::sync_accessibility therefore diffs the live
nodes of each freshly-built TreeUpdate and records the changes into
a ring buffer that an automation / test harness drains via
crate::WidgetTree::announcements_since. This is a faithful,
in-process model of the live-region stream, not a replacement for an
OS screen-reader smoke test.
Fields§
§seq: u64Monotonic sequence number, starting at 1. announcements_since(n)
returns every announcement whose seq > n.
text: StringThe announced text — the node’s value, or its label when the
node carries no value.
assertive: booltrue for Live::Assertive, false for Live::Polite.
Trait Implementations§
Source§impl Clone for Announcement
impl Clone for Announcement
Source§fn clone(&self) -> Announcement
fn clone(&self) -> Announcement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more