pub enum SttError {
Engine(String),
}Expand description
Why a Transcriber::transcribe call failed.
Mirrors the message-plus-kind shape of the pipeline’s other error types so
the conversion at the stage boundary
(impl From<SttError> for StageError) is direct. There is deliberately no
format-mismatch variant: samples are interpreted as
input_format() and the stage enforces that
format fatally, so an engine never sees nonconforming audio to reject.
Variants§
Engine(String)
The transcription engine itself failed — an inference error, a worker that crashed, a model that never loaded. Carries a human-readable description.
Trait Implementations§
impl Eq for SttError
Source§impl Error for SttError
impl Error for SttError
1.30.0 · 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<SttError> for StageError
impl From<SttError> for StageError
impl StructuralPartialEq for SttError
Auto Trait Implementations§
impl Freeze for SttError
impl RefUnwindSafe for SttError
impl Send for SttError
impl Sync for SttError
impl Unpin for SttError
impl UnsafeUnpin for SttError
impl UnwindSafe for SttError
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