pub enum ConfigError {
CurrentDir {
source: Error,
},
Internal {
message: String,
},
ModulePath {
path: Vec<String>,
},
SearchDirConflict,
SubcommandArguments {
subcommand: &'static str,
arguments: Vec<String>,
},
SubcommandOverrides {
subcommand: &'static str,
overrides: BTreeMap<String, String>,
},
SubcommandOverridesAndArguments {
subcommand: &'static str,
overrides: BTreeMap<String, String>,
arguments: Vec<String>,
},
}
Variants§
CurrentDir
Internal
ModulePath
SearchDirConflict
SubcommandArguments
SubcommandOverrides
SubcommandOverridesAndArguments
Implementations§
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ConfigError
impl ErrorCompat for ConfigError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl<'src> From<ConfigError> for Error<'src>
impl<'src> From<ConfigError> for Error<'src>
Source§fn from(config_error: ConfigError) -> Self
fn from(config_error: ConfigError) -> Self
Converts to this type from the input type.
Source§impl IntoError<ConfigError> for CurrentDirContext
impl IntoError<ConfigError> for CurrentDirContext
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0> IntoError<ConfigError> for InternalContext<__T0>
impl<__T0> IntoError<ConfigError> for InternalContext<__T0>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0> IntoError<ConfigError> for ModulePathContext<__T0>
impl<__T0> IntoError<ConfigError> for ModulePathContext<__T0>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl IntoError<ConfigError> for SearchDirConflictContext
impl IntoError<ConfigError> for SearchDirConflictContext
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<ConfigError> for SubcommandArgumentsContext<__T0, __T1>
impl<__T0, __T1> IntoError<ConfigError> for SubcommandArgumentsContext<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0, __T1, __T2> IntoError<ConfigError> for SubcommandOverridesAndArgumentsContext<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<ConfigError> for SubcommandOverridesAndArgumentsContext<__T0, __T1, __T2>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<ConfigError> for SubcommandOverridesContext<__T0, __T1>where
ConfigError: Error + ErrorCompat,
__T0: Into<&'static str>,
__T1: Into<BTreeMap<String, String>>,
impl<__T0, __T1> IntoError<ConfigError> for SubcommandOverridesContext<__T0, __T1>where
ConfigError: Error + ErrorCompat,
__T0: Into<&'static str>,
__T1: Into<BTreeMap<String, String>>,
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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