pub enum QrVerificationState {
Started,
Scanned,
Confirmed,
Reciprocated,
Done {
verified_devices: Vec<ReadOnlyDevice>,
verified_identities: Vec<ReadOnlyUserIdentities>,
},
Cancelled(CancelInfo),
}
qrcode
only.Expand description
An Enum describing the state the QrCode verification is in.
Variants§
Started
The QR verification has been started.
We have received the other device’s details (from the
m.key.verification.request
or m.key.verification.ready
) and
established the shared secret, so can
display the QR code.
Note that despite the name of this state, we have not yet sent or
received an m.key.verification.start
message.
Scanned
The QR verification has been scanned by the other side.
Confirmed
We have confirmed the other side’s scan of the QR code.
Reciprocated
We have successfully scanned the QR code and are able to send a reciprocation event.
Call QrVerification::reciprocate
to build the reciprocation message.
Note that, despite the name of this state, we have not necessarily
yet sent the m.reciprocate.v1
message.
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§
source§impl Clone for QrVerificationState
impl Clone for QrVerificationState
source§fn clone(&self) -> QrVerificationState
fn clone(&self) -> QrVerificationState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for QrVerificationState
impl Send for QrVerificationState
impl Sync for QrVerificationState
impl Unpin for QrVerificationState
impl UnwindSafe for QrVerificationState
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<>