Enum matrix_sdk::encryption::MegolmError
[−]pub enum MegolmError {
EventError(EventError),
JsonError(Error),
MissingRoomKey,
Decode(DecodeError),
EncryptionNotEnabled,
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
Decryption failed because we’re missing the room key that was to encrypt the event.
Decode(DecodeError)
The encrypted megolm message couldn’t be decoded.
EncryptionNotEnabled
The room where a group session should be shared is not encrypted.
Decryption(DecryptionError)
The event could not have been decrypted.
Store(CryptoStoreError)
The storage layer returned an error.
Trait Implementations
impl Debug for MegolmError
impl Debug for MegolmError
impl Display for MegolmError
impl Display for MegolmError
impl Error for MegolmError
impl Error for MegolmError
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()
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<DecodeError> for MegolmError
impl From<DecodeError> for MegolmError
fn from(source: DecodeError) -> MegolmError
fn from(source: DecodeError) -> MegolmError
Converts to this type from the input type.
impl From<DecryptionError> for MegolmError
impl From<DecryptionError> for MegolmError
fn from(source: DecryptionError) -> MegolmError
fn from(source: DecryptionError) -> MegolmError
Converts to this type from the input type.
impl From<Error> for MegolmError
impl From<Error> for MegolmError
fn from(source: Error) -> MegolmError
fn from(source: Error) -> MegolmError
Converts to this type from the input type.
impl From<EventError> for MegolmError
impl From<EventError> for MegolmError
fn from(source: EventError) -> MegolmError
fn from(source: EventError) -> MegolmError
Converts to this type from the input type.
sourceimpl From<MegolmError> for Error
impl From<MegolmError> for Error
sourcefn from(source: MegolmError) -> Self
fn from(source: MegolmError) -> Self
Converts to this type from the input type.
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
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