pub enum TtsError {
Engine(String),
}Expand description
Why a Synthesizer::synthesize call failed.
Mirrors the message-plus-kind shape of the pipeline’s other error types (e.g.
pipecrab-stt’s SttError) so the conversion at the stage boundary
(impl From<TtsError> for StageError) is direct. A synthesizer produces
audio rather than consuming a caller-chosen format, so it has no
UnsupportedFormat variant to reject with.
Variants§
Engine(String)
The synthesis 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 TtsError
Source§impl Error for TtsError
impl Error for TtsError
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<TtsError> for StageError
impl From<TtsError> for StageError
impl StructuralPartialEq for TtsError
Auto Trait Implementations§
impl Freeze for TtsError
impl RefUnwindSafe for TtsError
impl Send for TtsError
impl Sync for TtsError
impl Unpin for TtsError
impl UnsafeUnpin for TtsError
impl UnwindSafe for TtsError
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