Enum matrix_sdk::encryption::verification::SasState
source · pub enum SasState {
Started {
protocols: SasV1Content,
},
Accepted {
accepted_protocols: AcceptedProtocols,
},
KeysExchanged {
emojis: Option<EmojiShortAuthString>,
decimals: (u16, u16, u16),
},
Confirmed,
Done {
verified_devices: Vec<ReadOnlyDevice>,
verified_identities: Vec<ReadOnlyUserIdentities>,
},
Cancelled(CancelInfo),
}
e2e-encryption
only.Expand description
An Enum describing the state the SAS verification is in.
Variants§
Started
Fields
protocols: SasV1Content
The protocols that were proposed in the m.key.verification.start
event.
The verification has been started, the protocols that should be used have been proposed and can be accepted.
Accepted
Fields
accepted_protocols: AcceptedProtocols
The protocols that were accepted in the m.key.verification.accept
event.
The verification has been accepted and both sides agreed to a set of protocols that will be used for the verification process.
KeysExchanged
Fields
emojis: Option<EmojiShortAuthString>
The emojis that represent the short auth string, will be None
if
the emoji SAS method wasn’t part of the AcceptedProtocols
.
The public keys have been exchanged and the short auth string can be presented to the user.
Confirmed
The verification process has been confirmed from our side, we’re waiting for the other side to confirm as well.
Done
Fields
verified_devices: Vec<ReadOnlyDevice>
The list of devices that has been verified.
verified_identities: Vec<ReadOnlyUserIdentities>
The list of user identities that has been verified.
The verification process has been successfully concluded.
Cancelled(CancelInfo)
The verification process has been cancelled.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SasState
impl Send for SasState
impl Sync for SasState
impl Unpin for SasState
impl UnwindSafe for SasState
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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<>