Enum matrix_sdk::encryption::MegolmError
source · pub enum MegolmError {
EventError(EventError),
JsonError(Error),
MissingRoomKey(Option<WithheldCode>),
MismatchedIdentityKeys(MismatchedIdentityKeysError),
Decode(DecodeError),
Decryption(DecryptionError),
Store(CryptoStoreError),
}
Available on crate feature
e2e-encryption
only.Expand description
Error representing a failure during a group encryption operation.
Variants§
EventError(EventError)
The event that should have been decrypted is malformed.
JsonError(Error)
The received decrypted event couldn’t be deserialized.
MissingRoomKey(Option<WithheldCode>)
Decryption failed because we’re missing the room key that was used to encrypt the event.
MismatchedIdentityKeys(MismatchedIdentityKeysError)
Decryption failed because of a mismatch between the identity keys of the device we received the room key from and the identity keys recorded in the plaintext of the room key to-device message.
Decode(DecodeError)
The encrypted megolm message couldn’t be decoded.
Decryption(DecryptionError)
The event could not have been decrypted.
Store(CryptoStoreError)
The storage layer returned an error.
Trait Implementations§
source§impl Debug for MegolmError
impl Debug for MegolmError
source§impl Display for MegolmError
impl Display for MegolmError
source§impl Error for MegolmError
impl Error for MegolmError
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 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<DecodeError> for MegolmError
impl From<DecodeError> for MegolmError
source§fn from(source: DecodeError) -> MegolmError
fn from(source: DecodeError) -> MegolmError
Converts to this type from the input type.
source§impl From<DecryptionError> for MegolmError
impl From<DecryptionError> for MegolmError
source§fn from(source: DecryptionError) -> MegolmError
fn from(source: DecryptionError) -> MegolmError
Converts to this type from the input type.
source§impl From<Error> for MegolmError
impl From<Error> for MegolmError
source§fn from(source: Error) -> MegolmError
fn from(source: Error) -> MegolmError
Converts to this type from the input type.
source§impl From<EventError> for MegolmError
impl From<EventError> for MegolmError
source§fn from(source: EventError) -> MegolmError
fn from(source: EventError) -> MegolmError
Converts to this type from the input type.
source§impl From<MegolmError> for Error
impl From<MegolmError> for Error
source§fn from(source: MegolmError) -> Error
fn from(source: MegolmError) -> Error
Converts to this type from the input type.
source§impl From<MegolmError> for Error
impl From<MegolmError> for Error
source§fn from(source: MegolmError) -> Self
fn from(source: MegolmError) -> Self
Converts to this type from the input type.
source§impl From<MismatchedIdentityKeysError> for MegolmError
impl From<MismatchedIdentityKeysError> for MegolmError
source§fn from(value: MismatchedIdentityKeysError) -> MegolmError
fn from(value: MismatchedIdentityKeysError) -> MegolmError
Converts to this type from the input type.
source§impl From<SessionDeviceCheckError> for MegolmError
impl From<SessionDeviceCheckError> for MegolmError
source§fn from(e: SessionDeviceCheckError) -> MegolmError
fn from(e: SessionDeviceCheckError) -> MegolmError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MegolmError
impl !RefUnwindSafe for MegolmError
impl Send for MegolmError
impl Sync for MegolmError
impl Unpin for MegolmError
impl !UnwindSafe for MegolmError
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