pub enum ConfigWarning {
XdgConfigIgnored {
xdg: String,
resolved: PathBuf,
},
OldConfigDirHasFiles {
old: PathBuf,
new: PathBuf,
},
}Expand description
Non-fatal warnings produced during config-path resolution.
Variants§
XdgConfigIgnored
$XDG_CONFIG_HOME was set to a non-absolute value and was ignored; the
platform default was used instead. Not emitted when --config-home
simply overrides a valid XDG value.
OldConfigDirHasFiles
The old config directory (platform default) has files but the new XDG_CONFIG_HOME directory is empty — the user may have forgotten to migrate.
Trait Implementations§
Source§impl Clone for ConfigWarning
impl Clone for ConfigWarning
Source§fn clone(&self) -> ConfigWarning
fn clone(&self) -> ConfigWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigWarning
impl Debug for ConfigWarning
Source§impl Display for ConfigWarning
impl Display for ConfigWarning
impl Eq for ConfigWarning
Source§impl PartialEq for ConfigWarning
impl PartialEq for ConfigWarning
impl StructuralPartialEq for ConfigWarning
Auto Trait Implementations§
impl Freeze for ConfigWarning
impl RefUnwindSafe for ConfigWarning
impl Send for ConfigWarning
impl Sync for ConfigWarning
impl Unpin for ConfigWarning
impl UnsafeUnpin for ConfigWarning
impl UnwindSafe for ConfigWarning
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