Enum fel4_config::ConfigError
source · pub enum ConfigError {
FileReadFailure,
TomlParseFailure,
MissingTable(String),
UnexpectedStructure(String),
MissingRequiredProperty(String, String),
NonStringProperty(&'static str),
InvalidValueOption(&'static str, Vec<String>, String),
DuplicateProperty(String),
NonWhitelistProperty(String),
TargetPlatformMismatch(SupportedTarget, SupportedPlatform),
}
Expand description
All the things that could go wrong when reading fel4 configuration data
Variants
FileReadFailure
TomlParseFailure
MissingTable(String)
UnexpectedStructure(String)
MissingRequiredProperty(String, String)
NonStringProperty(&'static str)
InvalidValueOption(&'static str, Vec<String>, String)
DuplicateProperty(String)
NonWhitelistProperty(String)
TargetPlatformMismatch(SupportedTarget, SupportedPlatform)
Trait Implementations
sourceimpl Clone for ConfigError
impl Clone for ConfigError
sourcefn clone(&self) -> ConfigError
fn clone(&self) -> ConfigError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConfigError
impl Debug for ConfigError
sourceimpl Display for ConfigError
impl Display for ConfigError
sourceimpl Fail for ConfigError
impl Fail for ConfigError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl PartialEq<ConfigError> for ConfigError
impl PartialEq<ConfigError> for ConfigError
sourcefn eq(&self, other: &ConfigError) -> bool
fn eq(&self, other: &ConfigError) -> bool
impl StructuralPartialEq for ConfigError
Auto Trait Implementations
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnwindSafe for ConfigError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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