Enum matrix_sdk_crypto::MegolmError
source · pub enum MegolmError {
EventError(EventError),
JsonError(Error),
MissingRoomKey(Option<WithheldCode>),
MismatchedIdentityKeys {
key_ed25519: Box<Ed25519PublicKey>,
device_ed25519: Option<Box<Ed25519PublicKey>>,
key_curve25519: Box<Curve25519PublicKey>,
device_curve25519: Option<Box<Curve25519PublicKey>>,
},
Decode(DecodeError),
Decryption(DecryptionError),
Store(CryptoStoreError),
}
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
Fields
key_ed25519: Box<Ed25519PublicKey>
The Ed25519 key recorded in the room key’s to-device message.
device_ed25519: Option<Box<Ed25519PublicKey>>
The Ed25519 identity key of the device sending the room key.
key_curve25519: Box<Curve25519PublicKey>
The Curve25519 key recorded in the room key’s to-device message.
device_curve25519: Option<Box<Curve25519PublicKey>>
The Curve25519 identity key of the device sending the room key.
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CryptoStoreError> for MegolmError
impl From<CryptoStoreError> for MegolmError
source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
source§impl From<DecodeError> for MegolmError
impl From<DecodeError> for MegolmError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
source§impl From<DecryptionError> for MegolmError
impl From<DecryptionError> for MegolmError
source§fn from(source: DecryptionError) -> Self
fn from(source: DecryptionError) -> Self
source§impl From<Error> for MegolmError
impl From<Error> for MegolmError
source§fn from(source: SerdeError) -> Self
fn from(source: SerdeError) -> Self
source§impl From<EventError> for MegolmError
impl From<EventError> for MegolmError
source§fn from(source: EventError) -> Self
fn from(source: EventError) -> Self
Auto Trait Implementations§
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>