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§
Source§impl Clone for ConfigError
impl Clone for ConfigError
Source§fn clone(&self) -> ConfigError
fn clone(&self) -> ConfigError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Fail for ConfigError
impl Fail for ConfigError
Source§fn 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
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl PartialEq for ConfigError
impl PartialEq for ConfigError
impl StructuralPartialEq for ConfigError
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> 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