pub enum SettingsStoreError {
Io(Error),
Parse(Error),
Flush(FlushError),
}Expand description
Errors surfaced by SettingsStore::open.
Variants§
Io(Error)
The settings file could not be read or written (missing directory, permission denied, etc.).
Parse(Error)
The settings file exists but its contents are not valid TOML.
Flush(FlushError)
An attempt to flush the in-memory state to disk failed.
Trait Implementations§
Source§impl Debug for SettingsStoreError
impl Debug for SettingsStoreError
Source§impl Display for SettingsStoreError
impl Display for SettingsStoreError
Source§impl Error for SettingsStoreError
impl Error for SettingsStoreError
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 From<Error> for SettingsStoreError
impl From<Error> for SettingsStoreError
Source§impl From<SettingsStoreError> for SettingsBundleError
impl From<SettingsStoreError> for SettingsBundleError
Source§fn from(source: SettingsStoreError) -> Self
fn from(source: SettingsStoreError) -> Self
Converts to this type from the input type.
Source§impl From<SettingsStoreError> for SettingsFileError
Lets SettingsStore::reload_from_disk surface a SettingsFileError
via ?, since crate::Reloadable is shared across every persisted
type in this crate and standardizes on that error type.
impl From<SettingsStoreError> for SettingsFileError
Lets SettingsStore::reload_from_disk surface a SettingsFileError
via ?, since crate::Reloadable is shared across every persisted
type in this crate and standardizes on that error type.
Source§fn from(e: SettingsStoreError) -> Self
fn from(e: SettingsStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SettingsStoreError
impl !UnwindSafe for SettingsStoreError
impl Freeze for SettingsStoreError
impl Send for SettingsStoreError
impl Sync for SettingsStoreError
impl Unpin for SettingsStoreError
impl UnsafeUnpin for SettingsStoreError
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