pub enum CliError {
Show 33 variants
Config {
message: String,
},
File {
operation: String,
path: String,
source: Error,
},
AudioFormat {
format: String,
supported: String,
},
VoiceNotFound {
voice_id: String,
available: String,
},
InvalidParameter {
parameter: String,
message: String,
},
Sdk(VoirsError),
Serialization(Error),
Toml(Error),
Io(Error),
VoiceError(String),
AudioError(String),
SynthesisError(String),
ValidationError(String),
IoError(String),
SerializationError(String),
InvalidArgument(String),
NotImplemented(String),
InteractiveError(String),
PackagingError(String),
UpdateError(String),
EmotionError(String),
CloningError(String),
ConversionError(String),
SingingError(String),
SpatialError(String),
ModelLoadingError(String),
FeatureNotAvailable(String),
MissingDependency(String),
HardwareRequirement(String),
NetworkError(String),
PerformanceWarning(String),
Workflow(String),
Advanced(Box<AdvancedError>),
}Expand description
CLI-specific error types
Variants§
Config
Configuration error
File
File operation error
AudioFormat
Audio format error
VoiceNotFound
Voice not found error
InvalidParameter
Invalid parameter error
Sdk(VoirsError)
SDK error wrapper
Serialization(Error)
Serialization error
Toml(Error)
TOML serialization error
Io(Error)
IO error
VoiceError(String)
Voice error for interactive mode
AudioError(String)
Audio error for interactive mode
SynthesisError(String)
Synthesis error for interactive mode
ValidationError(String)
Validation error
IoError(String)
IO error with message
SerializationError(String)
Serialization error with message
InvalidArgument(String)
Invalid argument error
NotImplemented(String)
Not implemented error
InteractiveError(String)
Interactive error
PackagingError(String)
Packaging error
UpdateError(String)
Update error
EmotionError(String)
Emotion control error
CloningError(String)
Voice cloning error
ConversionError(String)
Voice conversion error
SingingError(String)
Singing synthesis error
SpatialError(String)
Spatial audio error
ModelLoadingError(String)
Model loading error
FeatureNotAvailable(String)
Feature not available error
MissingDependency(String)
Dependency missing error
HardwareRequirement(String)
Hardware requirement error
NetworkError(String)
Network error
PerformanceWarning(String)
Performance warning
Workflow(String)
Workflow execution error
Advanced(Box<AdvancedError>)
Advanced error with rich context
Implementations§
Source§impl CliError
impl CliError
Sourcepub fn file_operation<S: Into<String>>(
operation: S,
path: S,
source: Error,
) -> Self
pub fn file_operation<S: Into<String>>( operation: S, path: S, source: Error, ) -> Self
Create a file operation error
Sourcepub fn audio_format<S: Into<String>>(format: S) -> Self
pub fn audio_format<S: Into<String>>(format: S) -> Self
Create an audio format error
Sourcepub fn voice_not_found<S: Into<String>>(
voice_id: S,
available: Vec<String>,
) -> Self
pub fn voice_not_found<S: Into<String>>( voice_id: S, available: Vec<String>, ) -> Self
Create a voice not found error
Sourcepub fn invalid_parameter<S: Into<String>>(parameter: S, message: S) -> Self
pub fn invalid_parameter<S: Into<String>>(parameter: S, message: S) -> Self
Create an invalid parameter error
Sourcepub fn emotion_error<S: Into<String>>(message: S) -> Self
pub fn emotion_error<S: Into<String>>(message: S) -> Self
Create an emotion control error
Sourcepub fn cloning_error<S: Into<String>>(message: S) -> Self
pub fn cloning_error<S: Into<String>>(message: S) -> Self
Create a voice cloning error
Sourcepub fn conversion_error<S: Into<String>>(message: S) -> Self
pub fn conversion_error<S: Into<String>>(message: S) -> Self
Create a voice conversion error
Sourcepub fn singing_error<S: Into<String>>(message: S) -> Self
pub fn singing_error<S: Into<String>>(message: S) -> Self
Create a singing synthesis error
Sourcepub fn spatial_error<S: Into<String>>(message: S) -> Self
pub fn spatial_error<S: Into<String>>(message: S) -> Self
Create a spatial audio error
Sourcepub fn model_loading_error<S: Into<String>>(message: S) -> Self
pub fn model_loading_error<S: Into<String>>(message: S) -> Self
Create a model loading error
Sourcepub fn feature_not_available<S: Into<String>>(message: S) -> Self
pub fn feature_not_available<S: Into<String>>(message: S) -> Self
Create a feature not available error
Sourcepub fn missing_dependency<S: Into<String>>(message: S) -> Self
pub fn missing_dependency<S: Into<String>>(message: S) -> Self
Create a missing dependency error
Sourcepub fn hardware_requirement<S: Into<String>>(message: S) -> Self
pub fn hardware_requirement<S: Into<String>>(message: S) -> Self
Create a hardware requirement error
Sourcepub fn network_error<S: Into<String>>(message: S) -> Self
pub fn network_error<S: Into<String>>(message: S) -> Self
Create a network error
Sourcepub fn performance_warning<S: Into<String>>(message: S) -> Self
pub fn performance_warning<S: Into<String>>(message: S) -> Self
Create a performance warning
Sourcepub fn to_advanced_error(&self) -> AdvancedError
pub fn to_advanced_error(&self) -> AdvancedError
Convert to an advanced error with additional context
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get user-friendly error message with suggestions
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Box<AdvancedError>> for CliError
impl From<Box<AdvancedError>> for CliError
Source§fn from(source: Box<AdvancedError>) -> Self
fn from(source: Box<AdvancedError>) -> Self
Source§impl From<CliError> for VoirsError
Convert CliError to VoirsError for compatibility
impl From<CliError> for VoirsError
Convert CliError to VoirsError for compatibility
Source§impl From<VoirsError> for CliError
impl From<VoirsError> for CliError
Source§fn from(source: VoirsError) -> Self
fn from(source: VoirsError) -> Self
Auto Trait Implementations§
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl !UnwindSafe for CliError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
fn to_sample_(self) -> U
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.