pub enum WhisperCppError {
Io(Error),
Wav(Error),
Http(String),
InvalidInput(String),
UnsupportedLanguage(String),
InvalidChecksum {
model: WhisperCppModel,
},
Initialization(String),
Inference(String),
InvalidUtf8,
}Expand description
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
Auto Trait Implementations§
impl Freeze for WhisperCppError
impl !RefUnwindSafe for WhisperCppError
impl Send for WhisperCppError
impl Sync for WhisperCppError
impl Unpin for WhisperCppError
impl UnsafeUnpin for WhisperCppError
impl !UnwindSafe 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