pub enum SynthesisError {
Show 14 variants
Model {
backend: &'static str,
source: ModelError,
},
Load {
backend: &'static str,
model: String,
source: BackendError,
},
Inference {
backend: &'static str,
source: BackendError,
},
Program {
backend: &'static str,
program: String,
source: BackendError,
},
UnsupportedVoice {
backend: &'static str,
voice: String,
},
UnsupportedBackend {
backend: &'static str,
},
WorkerPanicked {
backend: &'static str,
},
PcmUnavailable {
backend: &'static str,
},
EmptyReadBuffer,
Cancelled,
SourceGone,
TimedOut {
backend: &'static str,
},
AlreadyFailed,
Playback {
source: PlaybackError,
},
}Variants§
Model
Load
Inference
Program
UnsupportedVoice
UnsupportedBackend
WorkerPanicked
EmptyReadBuffer
Cancelled
SourceGone
TimedOut
AlreadyFailed
Playback
Available on non-
target_family=wasm only.Fields
§
source: PlaybackErrorTrait Implementations§
Source§impl Debug for SynthesisError
impl Debug for SynthesisError
Source§impl Display for SynthesisError
impl Display for SynthesisError
Source§impl Error for SynthesisError
impl Error for SynthesisError
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 SynthesisError
impl !UnwindSafe for SynthesisError
impl Freeze for SynthesisError
impl Send for SynthesisError
impl Sync for SynthesisError
impl Unpin for SynthesisError
impl UnsafeUnpin for SynthesisError
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