pub enum QrVerificationState {
Started,
Scanned,
Confirmed,
Reciprocated,
Done {
verified_devices: Vec<ReadOnlyDevice>,
verified_identities: Vec<ReadOnlyUserIdentities>,
},
Cancelled(CancelInfo),
}
e2e-encryption
and 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
The verification process has been successfully concluded.
Cancelled(CancelInfo)
The verification process has been cancelled.
Trait Implementations§
§impl Clone for QrVerificationState
impl Clone for QrVerificationState
§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 more