pub enum TtsError {
Show 14 variants
NotSupported,
OperationFailed,
NotLoaded,
NotSaved,
NoDefaultModel,
Tensor,
NoTokenizerKey,
Hound(Error),
RodioPlay(PlayError),
RodioStream(StreamError),
RodioDevices(DevicesError),
IO(Error),
Json,
Text(String),
}Variants§
NotSupported
OperationFailed
NotLoaded
NotSaved
NoDefaultModel
Tensor
NoTokenizerKey
Hound(Error)
RodioPlay(PlayError)
RodioStream(StreamError)
RodioDevices(DevicesError)
IO(Error)
Json
Text(String)
Trait Implementations§
Source§impl Error for TtsError
impl Error for TtsError
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<DevicesError> for TtsError
impl From<DevicesError> for TtsError
Source§fn from(source: DevicesError) -> Self
fn from(source: DevicesError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for TtsError
impl From<StreamError> for TtsError
Source§fn from(source: StreamError) -> Self
fn from(source: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TtsError
impl !UnwindSafe for TtsError
impl Freeze for TtsError
impl Send for TtsError
impl Sync for TtsError
impl Unpin for TtsError
impl UnsafeUnpin 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