pub enum SttErrorCode {
Show 14 variants
None,
NotAvailable,
PermissionDenied,
SpeechPermissionDenied,
NetworkError,
AudioError,
Timeout,
NoSpeech,
LanguageNotSupported,
Cancelled,
AlreadyListening,
NotListening,
Busy,
Unknown,
}Expand description
Unified error codes for cross-platform consistency
Variants§
None
No error
NotAvailable
Speech recognition service not available
PermissionDenied
Microphone permission denied
SpeechPermissionDenied
Speech recognition permission denied (iOS)
NetworkError
Network error (server-based recognition)
AudioError
Audio recording error
Timeout
Recognition timed out (maxDuration reached)
NoSpeech
No speech detected
LanguageNotSupported
Language not supported
Cancelled
Recognition was cancelled
AlreadyListening
Already listening
NotListening
Not currently listening
Busy
Service busy
Unknown
Unknown error
Implementations§
Source§impl SttErrorCode
impl SttErrorCode
Trait Implementations§
Source§impl Clone for SttErrorCode
impl Clone for SttErrorCode
Source§fn clone(&self) -> SttErrorCode
fn clone(&self) -> SttErrorCode
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 Debug for SttErrorCode
impl Debug for SttErrorCode
Source§impl Default for SttErrorCode
impl Default for SttErrorCode
Source§impl<'de> Deserialize<'de> for SttErrorCode
impl<'de> Deserialize<'de> for SttErrorCode
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 PartialEq for SttErrorCode
impl PartialEq for SttErrorCode
Source§impl Serialize for SttErrorCode
impl Serialize for SttErrorCode
impl Copy for SttErrorCode
impl Eq for SttErrorCode
impl StructuralPartialEq for SttErrorCode
Auto Trait Implementations§
impl Freeze for SttErrorCode
impl RefUnwindSafe for SttErrorCode
impl Send for SttErrorCode
impl Sync for SttErrorCode
impl Unpin for SttErrorCode
impl UnsafeUnpin for SttErrorCode
impl UnwindSafe for SttErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.