pub enum ConfError {
Show 17 variants
Io {
source: Error,
},
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,
},
}
Variants
Io
Fields
source: Error
UnknownFileExtension
Fields
path: String
Toml
Fields
source: Error
Hjson
Fields
source: Error
Invalid
MissingField
Fields
txt: String
InvalidVerbInvocation
Fields
invocation: String
InvalidVerbConf
Fields
details: String
UnknownInternal
Fields
verb: String
InvalidSearchMode
Fields
details: String
InvalidKey
Fields
raw: String
ParseKey
Fields
source: ParseKeyError
ReservedKey
Fields
key: String
UnexpectedInternalArg
Fields
invocation: String
InvalidCols
Fields
details: String
InvalidSkin
Fields
source: InvalidSkinError
InvalidThreadsCount
Fields
count: usize
Trait Implementations
sourceimpl Error for ConfError
impl Error for ConfError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ConfError> for ProgramError
impl From<ConfError> for ProgramError
sourceimpl From<InvalidSkinError> for ConfError
impl From<InvalidSkinError> for ConfError
sourcefn from(source: InvalidSkinError) -> Self
fn from(source: InvalidSkinError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseKeyError> for ConfError
impl From<ParseKeyError> for ConfError
sourcefn 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 T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
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. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more