pub enum ConfError {
Show 20 variants
Io {
source: Error,
},
ImportNotFound {
path: String,
},
UnknownFileExtension {
path: String,
},
Toml {
source: Error,
},
Hjson {
source: Error,
},
Invalid,
MissingField {
txt: String,
},
InvalidVerbInvocation {
invocation: String,
},
InvalidVerbConf {
details: String,
},
UnknownInternal {
verb: String,
},
InvalidSearchMode {
details: String,
},
InvalidKey {
raw: String,
},
ParseKey {
source: ParseKeyError,
},
ReservedKey {
key: String,
},
UnexpectedInternalArg {
invocation: String,
},
InvalidCols {
details: String,
},
InvalidSkin {
source: InvalidSkinError,
},
InvalidThreadsCount {
count: usize,
},
InvalidDefaultFlags {
flags: String,
},
InvalidSyntaxTheme {
name: String,
},
}
Variants§
Io
ImportNotFound
UnknownFileExtension
Toml
Hjson
Invalid
MissingField
InvalidVerbInvocation
InvalidVerbConf
UnknownInternal
InvalidSearchMode
InvalidKey
ParseKey
Fields
§
source: ParseKeyError
ReservedKey
UnexpectedInternalArg
InvalidCols
InvalidSkin
Fields
§
source: InvalidSkinError
InvalidThreadsCount
InvalidDefaultFlags
InvalidSyntaxTheme
Trait Implementations§
source§impl Error for ConfError
impl Error for ConfError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConfError> for ProgramError
impl From<ConfError> for ProgramError
source§impl From<InvalidSkinError> for ConfError
impl From<InvalidSkinError> for ConfError
source§fn from(source: InvalidSkinError) -> Self
fn from(source: InvalidSkinError) -> Self
Converts to this type from the input type.
source§impl From<ParseKeyError> for ConfError
impl From<ParseKeyError> for ConfError
source§fn from(source: ParseKeyError) -> Self
fn from(source: ParseKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfError
impl Send for ConfError
impl Sync for ConfError
impl Unpin for ConfError
impl !UnwindSafe for ConfError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§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.