Enum odilia_common::events::ScreenReaderEvent
source · 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 copy 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<ScreenReaderEvent> for ScreenReaderEvent
impl PartialEq<ScreenReaderEvent> for ScreenReaderEvent
source§fn eq(&self, other: &ScreenReaderEvent) -> bool
fn eq(&self, other: &ScreenReaderEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.