pub struct AccessEvent {
pub action: Action,
pub data: Option<ActionData>,
}Expand description
An accessibility event.
This is generated by accesskit back-ends when the user interacts with
the app using their platform’s accessibility APIs.
For instance, these events are often used by visually impaired users to navigate your app without a mouse.
Fields§
§action: ActionThe action that was performed.
data: Option<ActionData>Additional data associated with the action.
Implementations§
Source§impl AccessEvent
impl AccessEvent
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Short name of the event, for debug logging.
Returns the enum variant name.
Trait Implementations§
Source§impl Clone for AccessEvent
impl Clone for AccessEvent
Source§impl Debug for AccessEvent
impl Debug for AccessEvent
Source§impl PartialEq for AccessEvent
impl PartialEq for AccessEvent
impl StructuralPartialEq for AccessEvent
Auto Trait Implementations§
impl Freeze for AccessEvent
impl RefUnwindSafe for AccessEvent
impl Send for AccessEvent
impl Sync for AccessEvent
impl Unpin for AccessEvent
impl UnsafeUnpin for AccessEvent
impl UnwindSafe for AccessEvent
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