pub enum StoreError {
EntryError(EntryError),
KeyNotFound,
}
Expand description
the StoreError
type enumerates the possible errors that can occur in the store module.
Variants§
EntryError(EntryError)
KeyNotFound
An error indicating that the key was not found in the key-value store.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub const fn is_entry_error(&self) -> bool
pub const fn is_entry_error(&self) -> bool
Returns true if the enum is StoreError::EntryError otherwise false
Sourcepub const fn is_key_not_found(&self) -> bool
pub const fn is_key_not_found(&self) -> bool
Returns true if the enum is StoreError::KeyNotFound otherwise false
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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<EntryError> for StoreError
impl From<EntryError> for StoreError
Source§fn from(source: EntryError) -> Self
fn from(source: EntryError) -> Self
Converts to this type from the input type.
impl Copy for StoreError
Auto Trait Implementations§
impl Freeze for StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnwindSafe for StoreError
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