#[non_exhaustive]pub enum ConfigDirError {
NotUnicode {
key: &'static str,
},
NoHome,
}Expand description
Why the config directory could not be resolved.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotUnicode
An environment variable is set to a non-UTF-8 value.
An error rather than a fall-through: silently trying the next rung would resolve a different file from the one the user configured, and report success.
NoHome
None of XDG_CONFIG_HOME, APPDATA, HOME or USERPROFILE is set.
Trait Implementations§
Source§impl Debug for ConfigDirError
impl Debug for ConfigDirError
Source§impl Display for ConfigDirError
impl Display for ConfigDirError
Source§impl Error for ConfigDirError
impl Error for ConfigDirError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ConfigDirError
impl RefUnwindSafe for ConfigDirError
impl Send for ConfigDirError
impl Sync for ConfigDirError
impl Unpin for ConfigDirError
impl UnsafeUnpin for ConfigDirError
impl UnwindSafe for ConfigDirError
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