Enum configr::ConfigError [−][src]
pub enum ConfigError { ReadConfig { source: Error, path: PathBuf, }, CreateFs { source: Error, path: PathBuf, }, Deserialize { source: Error, path: PathBuf, toml: String, }, ConfigDir, }
Expand description
List of error categories
Variants
Expand description
Loading the config.toml file failed.
Expand description
Creating the directory or file failed.
Expand description
TOML parsing failed in some way.
Expand description
Unable to get the configuration directory, possibly because of an unsupported OS.
Trait Implementations
impl Debug for ConfigError
[src]
impl Debug for ConfigError
[src]impl Display for ConfigError
[src]
impl Display for ConfigError
[src]impl Error for ConfigError where
Self: Debug + Display,
[src]
impl Error for ConfigError where
Self: Debug + Display,
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl ErrorCompat for ConfigError
[src]
impl ErrorCompat for ConfigError
[src]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
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]pub fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
pub fn as_error_source(&self) -> &(dyn Error + 'static)
[src]For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more