pub enum TranscriptionError {
Show 16 variants
Model {
backend: &'static str,
source: ModelError,
},
Load {
backend: &'static str,
model: String,
source: BackendError,
},
Capture(CaptureError),
Inference {
backend: &'static str,
source: BackendError,
},
UnsupportedLanguage {
backend: &'static str,
language: String,
},
UnsupportedAudioPath {
backend: &'static str,
path: PathBuf,
},
UnsupportedAudioInput {
backend: &'static str,
received: AudioInputKind,
required: AudioInputKind,
},
UnsupportedBackend {
backend: &'static str,
},
UnsupportedDevice {
backend: &'static str,
},
NoNativeStream,
LoadPanicked,
Cancelled,
NoSpeech,
NoDelegatedOperation,
InvalidSegment,
Processing(Error),
}Variants§
Model
Load
Capture(CaptureError)
Inference
UnsupportedLanguage
UnsupportedAudioPath
UnsupportedAudioInput
UnsupportedBackend
UnsupportedDevice
NoNativeStream
LoadPanicked
Cancelled
NoSpeech
NoDelegatedOperation
InvalidSegment
Processing(Error)
Trait Implementations§
Source§impl Debug for TranscriptionError
impl Debug for TranscriptionError
Source§impl Display for TranscriptionError
impl Display for TranscriptionError
Source§impl Error for TranscriptionError
impl Error for TranscriptionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for TranscriptionError
impl !UnwindSafe for TranscriptionError
impl Freeze for TranscriptionError
impl Send for TranscriptionError
impl Sync for TranscriptionError
impl Unpin for TranscriptionError
impl UnsafeUnpin for TranscriptionError
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