#[non_exhaustive]pub enum VoiceMode {
Hold,
Tap,
Other(String),
}Expand description
voice.mode.
Docs: voice.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hold
You hold the dictation key while speaking and release it to stop.
Tap
You tap the key once to start recording and again to send.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VoiceMode
impl<'de> Deserialize<'de> for VoiceMode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VoiceMode
Source§impl Ord for VoiceMode
impl Ord for VoiceMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for VoiceMode
impl PartialOrd for VoiceMode
impl StructuralPartialEq for VoiceMode
Auto Trait Implementations§
impl Forget for VoiceMode
impl Freeze for VoiceMode
impl Move for VoiceMode
impl RefUnwindSafe for VoiceMode
impl Send for VoiceMode
impl Sync for VoiceMode
impl Unpin for VoiceMode
impl UnsafeUnpin for VoiceMode
impl UnwindSafe for VoiceMode
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