pub enum PersistedValueError {
ValueNotFound(&'static str),
Closed,
Internal(String),
}Expand description
Errors that can occur when working with persisted values.
Variants§
ValueNotFound(&'static str)
The value has never been written.
Closed
The database was closed by StateRegistry::wipe().
Internal(String)
Any other failure. Never contains the stored value.
Trait Implementations§
Source§impl Debug for PersistedValueError
impl Debug for PersistedValueError
Source§impl Display for PersistedValueError
impl Display for PersistedValueError
Source§impl Error for PersistedValueError
impl Error for PersistedValueError
1.30.0 · 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<DatabaseError> for PersistedValueError
impl From<DatabaseError> for PersistedValueError
Source§fn from(e: DatabaseError) -> Self
fn from(e: DatabaseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PersistedValueError
impl RefUnwindSafe for PersistedValueError
impl Send for PersistedValueError
impl Sync for PersistedValueError
impl Unpin for PersistedValueError
impl UnsafeUnpin for PersistedValueError
impl UnwindSafe for PersistedValueError
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