pub enum CryptoStoreError {
AccountUnset,
Io(Error),
UnpicklingError,
Pickle(PickleError),
SessionCreation(SessionCreationError),
IdentifierValidation(Error),
Serialization(Error),
UnsupportedDatabaseVersion(usize, usize),
Backend(Box<dyn Error + Send + Sync + 'static, Global>),
}Available on crate feature
e2e-encryption only.Expand description
The crypto store’s error type.
Variants
AccountUnset
The account that owns the sessions, group sessions, and devices wasn’t found.
Io(Error)
An IO error occurred.
UnpicklingError
Failed to decrypt an pickled object.
Pickle(PickleError)
Failed to decrypt an pickled object.
SessionCreation(SessionCreationError)
The received room key couldn’t be converted into a valid Megolm session.
IdentifierValidation(Error)
A Matrix identifier failed to be validated.
Serialization(Error)
The store failed to (de)serialize a data type.
UnsupportedDatabaseVersion(usize, usize)
The database format has changed in a backwards incompatible way.
Backend(Box<dyn Error + Send + Sync + 'static, Global>)
A problem with the underlying database backend
Implementations
impl CryptoStoreError
impl CryptoStoreError
Trait Implementations
impl Debug for CryptoStoreError
impl Debug for CryptoStoreError
impl Display for CryptoStoreError
impl Display for CryptoStoreError
impl Error for CryptoStoreError
impl Error for CryptoStoreError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<CryptoStoreError> for Error
impl From<CryptoStoreError> for Error
sourcefn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
impl From<CryptoStoreError> for MegolmError
impl From<CryptoStoreError> for MegolmError
fn from(source: CryptoStoreError) -> MegolmError
fn from(source: CryptoStoreError) -> MegolmError
Converts to this type from the input type.
impl From<CryptoStoreError> for OlmError
impl From<CryptoStoreError> for OlmError
fn from(source: CryptoStoreError) -> OlmError
fn from(source: CryptoStoreError) -> OlmError
Converts to this type from the input type.
sourceimpl From<CryptoStoreError> for OpenStoreError
impl From<CryptoStoreError> for OpenStoreError
sourcefn from(source: CryptoStoreError) -> OpenStoreError
fn from(source: CryptoStoreError) -> OpenStoreError
Converts to this type from the input type.
sourceimpl From<CryptoStoreError> for RoomKeyImportError
impl From<CryptoStoreError> for RoomKeyImportError
sourcefn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
impl From<CryptoStoreError> for ScanError
impl From<CryptoStoreError> for ScanError
fn from(source: CryptoStoreError) -> ScanError
fn from(source: CryptoStoreError) -> ScanError
Converts to this type from the input type.
impl From<CryptoStoreError> for SecretImportError
impl From<CryptoStoreError> for SecretImportError
fn from(source: CryptoStoreError) -> SecretImportError
fn from(source: CryptoStoreError) -> SecretImportError
Converts to this type from the input type.
impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
fn from(source: Error) -> CryptoStoreError
fn from(source: Error) -> CryptoStoreError
Converts to this type from the input type.
impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
fn from(source: Error) -> CryptoStoreError
fn from(source: Error) -> CryptoStoreError
Converts to this type from the input type.
impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
fn from(source: Error) -> CryptoStoreError
fn from(source: Error) -> CryptoStoreError
Converts to this type from the input type.
impl From<PickleError> for CryptoStoreError
impl From<PickleError> for CryptoStoreError
fn from(source: PickleError) -> CryptoStoreError
fn from(source: PickleError) -> CryptoStoreError
Converts to this type from the input type.
impl From<SessionCreationError> for CryptoStoreError
impl From<SessionCreationError> for CryptoStoreError
fn from(source: SessionCreationError) -> CryptoStoreError
fn from(source: SessionCreationError) -> CryptoStoreError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CryptoStoreError
impl Send for CryptoStoreError
impl Sync for CryptoStoreError
impl Unpin for CryptoStoreError
impl !UnwindSafe for CryptoStoreError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more