pub enum SettingsError {
NoFolder,
NotAFileName,
Io(Error),
Encode(Error),
}Expand description
Why a settings file could not be written.
Variants§
NoFolder
The path has no folder to write in.
NotAFileName
The path does not end in a file name.
Io(Error)
Creating the folder, writing, syncing or renaming failed.
Encode(Error)
The value cannot be written as JSON.
Implementations§
Trait Implementations§
Source§impl Debug for SettingsError
impl Debug for SettingsError
Source§impl Display for SettingsError
impl Display for SettingsError
Source§impl Error for SettingsError
impl Error for SettingsError
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 !RefUnwindSafe for SettingsError
impl !UnwindSafe for SettingsError
impl Freeze for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl UnsafeUnpin for SettingsError
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