#[non_exhaustive]pub enum OpenStoreError {
State(StoreError),
Crypto(CryptoStoreError),
Sled(Error),
}
Expand description
All the errors that can occur when opening a sled store.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
State(StoreError)
An error occurred with the state store implementation.
Crypto(CryptoStoreError)
An error occurred with the crypto store implementation.
Sled(Error)
An error occurred with sled.
Trait Implementations§
Source§impl Debug for OpenStoreError
impl Debug for OpenStoreError
Source§impl Display for OpenStoreError
impl Display for OpenStoreError
Source§impl Error for OpenStoreError
impl Error for OpenStoreError
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<CryptoStoreError> for OpenStoreError
impl From<CryptoStoreError> for OpenStoreError
Source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OpenStoreError
impl From<Error> for OpenStoreError
Source§impl From<StoreError> for OpenStoreError
impl From<StoreError> for OpenStoreError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenStoreError
impl !RefUnwindSafe for OpenStoreError
impl Send for OpenStoreError
impl Sync for OpenStoreError
impl Unpin for OpenStoreError
impl !UnwindSafe for OpenStoreError
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