#[non_exhaustive]pub enum SettingsErrorKind {
Read(String),
Parse(String),
NotAnObject,
Lock(String),
Write(String),
ProjectUntrusted,
}Expand description
What went wrong with a settings file.
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.
Read(String)
The file could not be read.
Parse(String)
The file is not valid JSON.
NotAnObject
The file is valid JSON but not an object.
Lock(String)
The lock file could not be created or locked.
Write(String)
The file could not be written.
ProjectUntrusted
A project write was attempted while the project is untrusted.
Trait Implementations§
Source§impl Clone for SettingsErrorKind
impl Clone for SettingsErrorKind
Source§impl Debug for SettingsErrorKind
impl Debug for SettingsErrorKind
Source§impl Display for SettingsErrorKind
impl Display for SettingsErrorKind
impl Eq for SettingsErrorKind
Source§impl Error for SettingsErrorKind
impl Error for SettingsErrorKind
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()
Source§impl PartialEq for SettingsErrorKind
impl PartialEq for SettingsErrorKind
impl StructuralPartialEq for SettingsErrorKind
Auto Trait Implementations§
impl Freeze for SettingsErrorKind
impl RefUnwindSafe for SettingsErrorKind
impl Send for SettingsErrorKind
impl Sync for SettingsErrorKind
impl Unpin for SettingsErrorKind
impl UnsafeUnpin for SettingsErrorKind
impl UnwindSafe for SettingsErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.