pub enum EventCacheStoreError {
Backend(Box<dyn Error + Send + Sync>),
Locked,
Unencrypted,
Encryption(StoreEncryptionError),
Codec(Utf8Error),
Serialization(Error),
UnsupportedDatabaseVersion(usize, usize),
InvalidData {
details: String,
},
}
Expand description
Event cache store specific error type.
Variants§
Backend(Box<dyn Error + Send + Sync>)
An error happened in the underlying database backend.
Locked
The store is locked with a passphrase and an incorrect passphrase was given.
Unencrypted
An unencrypted store was tried to be unlocked with a passphrase.
Encryption(StoreEncryptionError)
The store failed to encrypt or decrypt some data.
Codec(Utf8Error)
The store failed to encode or decode some data.
Serialization(Error)
The store failed to serialize or deserialize some data.
UnsupportedDatabaseVersion(usize, usize)
The database format has changed in a backwards incompatible way.
InvalidData
The store contains invalid data.
Implementations§
Trait Implementations§
Source§impl Debug for EventCacheStoreError
impl Debug for EventCacheStoreError
Source§impl Display for EventCacheStoreError
impl Display for EventCacheStoreError
Source§impl Error for EventCacheStoreError
impl Error for EventCacheStoreError
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 EventCacheStoreError
impl From<Error> for EventCacheStoreError
Source§fn from(source: StoreEncryptionError) -> Self
fn from(source: StoreEncryptionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EventCacheStoreError
impl From<Error> for EventCacheStoreError
Auto Trait Implementations§
impl Freeze for EventCacheStoreError
impl !RefUnwindSafe for EventCacheStoreError
impl Send for EventCacheStoreError
impl Sync for EventCacheStoreError
impl Unpin for EventCacheStoreError
impl !UnwindSafe for EventCacheStoreError
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more