pub struct States {
pub disabled: bool,
pub focused: bool,
pub selected: bool,
pub expanded: bool,
pub required: bool,
pub invalid: bool,
pub hidden: bool,
pub modal: bool,
pub checked: Option<TriState>,
pub busy: bool,
}Expand description
Node state flags.
Fields§
§disabled: boolDisabled.
focused: boolFocused (at most one per tree — audited).
selected: boolSelected.
expanded: boolExpanded (collapsible containers).
required: boolRequired (form input).
invalid: boolInvalid (form input with an error).
Hidden from the a11y tree (still present for focus management).
modal: boolModal (blocks sibling interaction).
checked: Option<TriState>Checkbox value.
busy: boolBusy: the value is transient or not yet settled.
Two callers need this and neither had a way to say it (found by
composing input-kit against this crate, 2026-10-18):
- IME composition. A textbox whose value is a half-formed syllable
must not have that value announced.
aria-busyis the signal, andinput-kit’sComposer::is_composingis what drives it. - Async loading. A textbox whose value is still being fetched should not be announced as empty.
busy is distinct from disabled and invalid: the control is live
and valid, only its value is not final.
Trait Implementations§
impl Copy for States
impl Eq for States
impl StructuralPartialEq for States
Auto Trait Implementations§
impl Freeze for States
impl RefUnwindSafe for States
impl Send for States
impl Sync for States
impl Unpin for States
impl UnsafeUnpin for States
impl UnwindSafe for States
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