pub enum SettingsError {
Json(Error),
Repository(RepositoryError),
Registry(StateRegistryError),
}Expand description
Errors that can occur when working with settings.
Variants§
Json(Error)
Failed to serialize/deserialize setting value
Repository(RepositoryError)
Repository operation failed
Registry(StateRegistryError)
State registry operation failed
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()
Source§impl From<Error> for SettingsError
impl From<Error> for SettingsError
Source§impl From<RepositoryError> for SettingsError
impl From<RepositoryError> for SettingsError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl From<StateRegistryError> for SettingsError
impl From<StateRegistryError> for SettingsError
Source§fn from(source: StateRegistryError) -> Self
fn from(source: StateRegistryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SettingsError
impl !RefUnwindSafe for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl !UnwindSafe 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more