pub enum QrVerificationState {
Started,
Scanned,
Confirmed,
Reciprocated,
Done {
verified_devices: Vec<DeviceData>,
verified_identities: Vec<UserIdentityData>,
},
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
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 moreAuto 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,
§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>
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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