pub enum ToDeviceUnableToDecryptReason {
DecryptionFailure,
UnverifiedSenderDevice,
NoOlmMachine,
EncryptionIsDisabled,
}
Expand description
Reason code for a to-device decryption failure
Variants§
DecryptionFailure
An error occurred while encrypting the event. This covers all
OlmError
types.
UnverifiedSenderDevice
We refused to decrypt the message because the sender’s device is not verified, or more generally, the sender’s identity did not match the trust requirement we were asked to provide.
NoOlmMachine
We have no OlmMachine
. This should not happen unless we forget to set
things up by calling OlmMachine::activate()
.
EncryptionIsDisabled
The Matrix SDK was compiled without encryption support.
Trait Implementations§
Source§impl Clone for ToDeviceUnableToDecryptReason
impl Clone for ToDeviceUnableToDecryptReason
Source§fn clone(&self) -> ToDeviceUnableToDecryptReason
fn clone(&self) -> ToDeviceUnableToDecryptReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for ToDeviceUnableToDecryptReason
impl PartialEq for ToDeviceUnableToDecryptReason
Source§fn eq(&self, other: &ToDeviceUnableToDecryptReason) -> bool
fn eq(&self, other: &ToDeviceUnableToDecryptReason) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ToDeviceUnableToDecryptReason
Auto Trait Implementations§
impl Freeze for ToDeviceUnableToDecryptReason
impl RefUnwindSafe for ToDeviceUnableToDecryptReason
impl Send for ToDeviceUnableToDecryptReason
impl Sync for ToDeviceUnableToDecryptReason
impl Unpin for ToDeviceUnableToDecryptReason
impl UnwindSafe for ToDeviceUnableToDecryptReason
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
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<>