Struct Event
pub struct Event {
pub kind: EventKind,
pub app: AppInfo,
pub target: Option<Node>,
pub state_flag: Option<StateFlag>,
pub state_value: Option<bool>,
pub text_change: Option<TextChangeData>,
pub timestamp: Instant,
}Expand description
An accessibility event delivered to subscribers.
Fields§
§kind: EventKindWhat kind of event occurred.
app: AppInfoThe application that produced this event.
target: Option<Node>A snapshot of the element that triggered the event, if available.
state_flag: Option<StateFlag>For StateChanged events: which state flag changed.
state_value: Option<bool>For StateChanged events: the new value of the flag.
text_change: Option<TextChangeData>For TextChanged events: details about the text modification.
timestamp: InstantMonotonic timestamp at event receipt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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