Enum matrix_sdk::encryption::CryptoStoreError
pub enum CryptoStoreError {
AccountUnset,
MismatchedAccount {
expected: (OwnedUserId, OwnedDeviceId),
got: (OwnedUserId, OwnedDeviceId),
},
Io(Error),
UnpicklingError,
Pickle(PickleError),
SessionCreation(SessionCreationError),
IdentifierValidation(Error),
Serialization(Error),
UnsupportedDatabaseVersion(usize, usize),
Backend(Box<dyn Error + Send + Sync>),
InvalidLockGeneration(String),
}
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.
MismatchedAccount
Fields
§
expected: (OwnedUserId, OwnedDeviceId)
The expected user/device id pair.
§
got: (OwnedUserId, OwnedDeviceId)
The user/device id pair that was loaded from the store.
The store doesn’t support multiple accounts and data from another device was discovered.
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>)
A problem with the underlying database backend
InvalidLockGeneration(String)
An error due to an invalid generation in a cross-process locking scheme.
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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<CryptoStoreError> for DehydrationError
impl From<CryptoStoreError> for DehydrationError
§fn from(source: CryptoStoreError) -> DehydrationError
fn from(source: CryptoStoreError) -> DehydrationError
Converts to this type from the input type.
source§impl From<CryptoStoreError> for Error
impl From<CryptoStoreError> for Error
source§fn from(source: CryptoStoreError) -> Error
fn from(source: CryptoStoreError) -> Error
Converts to this type from the input type.
source§impl From<CryptoStoreError> for Error
impl From<CryptoStoreError> for Error
source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
source§impl From<CryptoStoreError> for IndexeddbCryptoStoreError
impl From<CryptoStoreError> for IndexeddbCryptoStoreError
source§fn from(source: CryptoStoreError) -> IndexeddbCryptoStoreError
fn from(source: CryptoStoreError) -> IndexeddbCryptoStoreError
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.
source§impl From<CryptoStoreError> for RoomKeyImportError
impl From<CryptoStoreError> for RoomKeyImportError
source§fn 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.
source§impl From<CryptoStoreError> for SecretStorageError
impl From<CryptoStoreError> for SecretStorageError
source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
§impl From<CryptoStoreError> for SignatureError
impl From<CryptoStoreError> for SignatureError
§fn from(source: CryptoStoreError) -> SignatureError
fn from(source: CryptoStoreError) -> SignatureError
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.
source§impl From<Error> for CryptoStoreError
Available on crate feature crypto-store
only.
impl From<Error> for CryptoStoreError
Available on crate feature
crypto-store
only.source§fn from(e: Error) -> CryptoStoreError
fn from(e: 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.
source§impl From<IndexeddbCryptoStoreError> for CryptoStoreError
impl From<IndexeddbCryptoStoreError> for CryptoStoreError
source§fn from(frm: IndexeddbCryptoStoreError) -> CryptoStoreError
fn from(frm: IndexeddbCryptoStoreError) -> CryptoStoreError
Converts to this type from the input type.
§impl From<Infallible> for CryptoStoreError
impl From<Infallible> for CryptoStoreError
§fn from(never: Infallible) -> CryptoStoreError
fn from(never: Infallible) -> 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§
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