pub enum ConfigError {
NotLoadable {
path: PathBuf,
source: Error,
},
NotStorable {
path: PathBuf,
source: Error,
},
FolderNotCreatable {
path: PathBuf,
source: Error,
},
SystemConfigHomeNotSet,
NotReadable {
path: PathBuf,
source: Error,
},
NotWriteable {
path: PathBuf,
source: Error,
},
}Expand description
The error returned from config functions in this crate.
Variants§
NotLoadable
Config can’t be loaded from a path.
Fields
NotStorable
Config can’t be stored to a path.
Fields
FolderNotCreatable
The config folder can’t be created under a path.
Fields
SystemConfigHomeNotSet
The system data home is not set.
NotReadable
Config can’t be read from a path.
Fields
NotWriteable
Config can’t be written to a path.
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 source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 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 moreAuto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin 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