pub enum WhisperCppError {
Io(Error),
Wav(Error),
Http(String),
InvalidInput(String),
UnsupportedLanguage(String),
InvalidChecksum {
model: WhisperCppModel,
},
Initialization(String),
Inference(String),
InvalidUtf8,
}Expand description
Re-exports the text transcript native whisper.cpp API. Variants describing whisper cpp error.
Variants§
Io(Error)
The I/O variant.
Wav(Error)
The wav variant.
Http(String)
The http variant.
InvalidInput(String)
The invalid input variant.
UnsupportedLanguage(String)
The unsupported language variant.
InvalidChecksum
The invalid checksum variant.
Fields
§
model: WhisperCppModelModel associated with this variant.
Initialization(String)
The initialization variant.
Inference(String)
The inference variant.
InvalidUtf8
The invalid utf8 variant.
Trait Implementations§
Source§impl Debug for WhisperCppError
impl Debug for WhisperCppError
Source§impl Display for WhisperCppError
impl Display for WhisperCppError
Source§impl Error for WhisperCppError
impl Error for WhisperCppError
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()
Source§impl From<Error> for WhisperCppError
impl From<Error> for WhisperCppError
Source§impl From<Error> for WhisperCppError
impl From<Error> for WhisperCppError
Source§impl From<WhisperCppError> for TranscriptionError
impl From<WhisperCppError> for TranscriptionError
Source§fn from(source: WhisperCppError) -> Self
fn from(source: WhisperCppError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WhisperCppError
impl !UnwindSafe for WhisperCppError
impl Freeze for WhisperCppError
impl Send for WhisperCppError
impl Sync for WhisperCppError
impl Unpin for WhisperCppError
impl UnsafeUnpin for WhisperCppError
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