Enum matrix_sdk::encryption::CryptoStoreError
source · 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 + Sync + Send>),
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
The store doesn’t support multiple accounts and data from another device was discovered.
Fields
§
expected: (OwnedUserId, OwnedDeviceId)
The expected user/device id pair.
§
got: (OwnedUserId, OwnedDeviceId)
The user/device id pair that was loaded from the store.
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 + Sync + Send>)
A problem with the underlying database backend
InvalidLockGeneration(String)
An error due to an invalid generation in a cross-process locking scheme.
Implementations§
Trait Implementations§
source§impl Debug for CryptoStoreError
impl Debug for CryptoStoreError
source§impl Display for CryptoStoreError
impl Display for CryptoStoreError
source§impl Error for CryptoStoreError
impl Error for CryptoStoreError
source§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()
source§impl From<CryptoStoreError> for CrossProcessRefreshLockError
Available on crate feature experimental-oidc
only.
impl From<CryptoStoreError> for CrossProcessRefreshLockError
Available on crate feature
experimental-oidc
only.source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
source§impl From<CryptoStoreError> for DehydrationError
impl From<CryptoStoreError> for DehydrationError
source§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 Error
Available on crate feature experimental-sliding-sync
only.
impl From<CryptoStoreError> for Error
Available on crate feature
experimental-sliding-sync
only.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.
source§impl From<CryptoStoreError> for MegolmError
impl From<CryptoStoreError> for MegolmError
source§fn from(source: CryptoStoreError) -> MegolmError
fn from(source: CryptoStoreError) -> MegolmError
Converts to this type from the input type.
source§impl From<CryptoStoreError> for OlmError
impl From<CryptoStoreError> for OlmError
source§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.
source§impl From<CryptoStoreError> for ScanError
impl From<CryptoStoreError> for ScanError
source§fn from(source: CryptoStoreError) -> ScanError
fn from(source: CryptoStoreError) -> ScanError
Converts to this type from the input type.
source§impl From<CryptoStoreError> for SecretImportError
impl From<CryptoStoreError> for SecretImportError
source§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.
source§impl From<CryptoStoreError> for SecretsBundleExportError
impl From<CryptoStoreError> for SecretsBundleExportError
source§fn from(source: CryptoStoreError) -> SecretsBundleExportError
fn from(source: CryptoStoreError) -> SecretsBundleExportError
Converts to this type from the input type.
source§impl From<CryptoStoreError> for SetRoomSettingsError
impl From<CryptoStoreError> for SetRoomSettingsError
source§fn from(source: CryptoStoreError) -> SetRoomSettingsError
fn from(source: CryptoStoreError) -> SetRoomSettingsError
Converts to this type from the input type.
source§impl From<CryptoStoreError> for SignatureError
impl From<CryptoStoreError> for SignatureError
source§fn from(source: CryptoStoreError) -> SignatureError
fn from(source: CryptoStoreError) -> SignatureError
Converts to this type from the input type.
source§impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
source§fn from(source: Error) -> CryptoStoreError
fn from(source: Error) -> CryptoStoreError
Converts to this type from the input type.
source§impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
source§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.
source§impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
source§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.
source§impl From<Infallible> for CryptoStoreError
impl From<Infallible> for CryptoStoreError
source§fn from(never: Infallible) -> CryptoStoreError
fn from(never: Infallible) -> CryptoStoreError
Converts to this type from the input type.
source§impl From<PickleError> for CryptoStoreError
impl From<PickleError> for CryptoStoreError
source§fn from(source: PickleError) -> CryptoStoreError
fn from(source: PickleError) -> CryptoStoreError
Converts to this type from the input type.
source§impl From<SessionCreationError> for CryptoStoreError
impl From<SessionCreationError> for CryptoStoreError
source§fn from(source: SessionCreationError) -> CryptoStoreError
fn from(source: SessionCreationError) -> CryptoStoreError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CryptoStoreError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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