1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LiveRegion { Polite, Assertive, Off, } pub trait Accessible { fn accessible_label(&self) -> String; fn should_announce(&self) -> bool; fn live_region(&self) -> LiveRegion { LiveRegion::Polite } }