pub enum SettingsBundleError {
Store(SettingsStoreError),
File(SettingsFileError),
}Expand description
Errors surfaced by SettingsBundle::open.
Variants§
Store(SettingsStoreError)
The K/V store could not be opened or flushed.
File(SettingsFileError)
A settings file (e.g. the window-state file) could not be opened or flushed.
Trait Implementations§
Source§impl Debug for SettingsBundleError
impl Debug for SettingsBundleError
Source§impl Display for SettingsBundleError
impl Display for SettingsBundleError
Source§impl Error for SettingsBundleError
impl Error for SettingsBundleError
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<SettingsFileError> for SettingsBundleError
impl From<SettingsFileError> for SettingsBundleError
Source§fn from(source: SettingsFileError) -> Self
fn from(source: SettingsFileError) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl !RefUnwindSafe for SettingsBundleError
impl !UnwindSafe for SettingsBundleError
impl Freeze for SettingsBundleError
impl Send for SettingsBundleError
impl Sync for SettingsBundleError
impl Unpin for SettingsBundleError
impl UnsafeUnpin for SettingsBundleError
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