pub enum SettingsFileError {
Io(Error),
Parse(Error),
Migrate(MigrationError),
Serialize(Error),
Flush(FlushError),
}Expand description
Errors surfaced by SettingsFile operations (and, by extension, every
other persisted type in this crate — they all share this error type).
Variants§
Io(Error)
An OS-level file I/O error (read, write, or rename).
Parse(Error)
The file’s TOML could not be parsed.
Migrate(MigrationError)
A migration step failed; the file version could not be brought
up to T::CURRENT_VERSION.
Serialize(Error)
The in-memory value could not be serialized to TOML before writing.
Flush(FlushError)
The debounced background write failed.
Trait Implementations§
Source§impl Debug for SettingsFileError
impl Debug for SettingsFileError
Source§impl Display for SettingsFileError
impl Display for SettingsFileError
Source§impl Error for SettingsFileError
impl Error for SettingsFileError
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 SettingsFileError
impl From<Error> for SettingsFileError
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 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 SettingsFileError
impl !UnwindSafe for SettingsFileError
impl Freeze for SettingsFileError
impl Send for SettingsFileError
impl Sync for SettingsFileError
impl Unpin for SettingsFileError
impl UnsafeUnpin for SettingsFileError
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