pub enum QrVerificationState {
Started,
Scanned,
Confirmed,
Reciprocated,
Done {
verified_devices: Vec<DeviceData>,
verified_identities: Vec<UserIdentityData>,
},
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
The verification process has been successfully concluded.
Fields
verified_devices: Vec<DeviceData>The list of devices that has been verified.
verified_identities: Vec<UserIdentityData>The list of user identities that has been verified.
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 moreSource§impl Debug for QrVerificationState
impl Debug for QrVerificationState
Source§impl From<&InnerState> for QrVerificationState
impl From<&InnerState> for QrVerificationState
Source§fn from(value: &InnerState) -> QrVerificationState
fn from(value: &InnerState) -> QrVerificationState
Auto Trait Implementations§
impl Freeze for QrVerificationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more