pub enum ScreenReaderEvent {
Noop,
StopSpeech,
Enable(Feature),
Disable(Feature),
ChangeMode(ScreenReaderMode),
StructuralNavigation(Direction, Role),
}Expand description
Events which can be trigged through Odilia’s external API. Subject to change without notice until v1.0, but we’re open to suggestions on our Github; please reach out with features you’d like to see.
Variants§
Noop
when we need to do “something” but this is always hardcoded as nothing
StopSpeech
Stop all current speech.
Enable(Feature)
Enable a feature from working.
Disable(Feature)
Disable a feature.
ChangeMode(ScreenReaderMode)
Change mode of the screen reader. This is currently global, but it should be per application, and an update should only affect the current application.
Trait Implementations§
Source§impl Clone for ScreenReaderEvent
impl Clone for ScreenReaderEvent
Source§fn clone(&self) -> ScreenReaderEvent
fn clone(&self) -> ScreenReaderEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ScreenReaderEvent
impl<'de> Deserialize<'de> for ScreenReaderEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ScreenReaderEvent
impl Hash for ScreenReaderEvent
Source§impl PartialEq for ScreenReaderEvent
impl PartialEq for ScreenReaderEvent
Source§impl Serialize for ScreenReaderEvent
impl Serialize for ScreenReaderEvent
impl Eq for ScreenReaderEvent
impl StructuralPartialEq for ScreenReaderEvent
Auto Trait Implementations§
impl Freeze for ScreenReaderEvent
impl RefUnwindSafe for ScreenReaderEvent
impl Send for ScreenReaderEvent
impl Sync for ScreenReaderEvent
impl Unpin for ScreenReaderEvent
impl UnwindSafe for ScreenReaderEvent
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