#[non_exhaustive]pub enum ConfigErrorCause {
InvalidColor(InvalidColorError),
GitError(GitError),
InvalidShowWhitespace,
InvalidDiffIgnoreWhitespace,
InvalidDiffRenames,
InvalidBoolean,
InvalidUnsignedInteger,
InvalidKeyBinding,
InvalidUtf,
UnknownError(String),
}Expand description
The kind of config error that occurred.
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.
InvalidColor(InvalidColorError)
The input provided is not a valid color
GitError(GitError)
An error occurred reading the git config files.
InvalidShowWhitespace
The input provided is not a valid value for the show whitespace value.
InvalidDiffIgnoreWhitespace
The input provided is not a valid value for the ignore whitespace value.
InvalidDiffRenames
The input provided is not a valid value for the diff renames.
InvalidBoolean
The input provided is not a valid boolean value.
InvalidUnsignedInteger
The input provided is outside of valid range for an unsigned 32-bit integer.
InvalidKeyBinding
The input provided is not a valid input keybinding.
InvalidUtf
The input provided is not valid UTF.
UnknownError(String)
The input provided resulted in an unknown error variant: {0}.
Trait Implementations§
Source§impl Debug for ConfigErrorCause
impl Debug for ConfigErrorCause
Source§impl Display for ConfigErrorCause
impl Display for ConfigErrorCause
Source§impl Error for ConfigErrorCause
impl Error for ConfigErrorCause
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 PartialEq for ConfigErrorCause
impl PartialEq for ConfigErrorCause
impl StructuralPartialEq for ConfigErrorCause
Auto Trait Implementations§
impl Freeze for ConfigErrorCause
impl RefUnwindSafe for ConfigErrorCause
impl Send for ConfigErrorCause
impl Sync for ConfigErrorCause
impl Unpin for ConfigErrorCause
impl UnwindSafe for ConfigErrorCause
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