pub enum VerificationRequestState {
Created {
our_methods: Vec<VerificationMethod>,
},
Requested {
their_methods: Vec<VerificationMethod>,
other_device_data: DeviceData,
},
Ready {
their_methods: Vec<VerificationMethod>,
our_methods: Vec<VerificationMethod>,
other_device_data: DeviceData,
},
Transitioned {
verification: Verification,
},
Done,
Cancelled(CancelInfo),
}
e2e-encryption
only.Expand description
An Enum describing the state the verification request is in.
Variants§
Created
The verification request has been newly created by us.
Fields
our_methods: Vec<VerificationMethod>
The verification methods supported by us.
Requested
The verification request was received from the other party.
Fields
their_methods: Vec<VerificationMethod>
The verification methods supported by the sender.
other_device_data: DeviceData
The device data of the device that responded to the verification request.
Ready
The verification request is ready to start a verification flow.
Fields
their_methods: Vec<VerificationMethod>
The verification methods supported by the other side.
our_methods: Vec<VerificationMethod>
The verification methods supported by the us.
other_device_data: DeviceData
The device data of the device that responded to the verification request.
Transitioned
The verification request has transitioned into a concrete verification flow. For example it transitioned into the emoji based SAS verification.
Fields
verification: Verification
The concrete Verification
object the verification request
transitioned into.
Done
The verification flow that was started with this request has finished.
Cancelled(CancelInfo)
The verification process has been cancelled.
Trait Implementations§
Source§impl Clone for VerificationRequestState
impl Clone for VerificationRequestState
Source§fn clone(&self) -> VerificationRequestState
fn clone(&self) -> VerificationRequestState
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 VerificationRequestState
impl !RefUnwindSafe for VerificationRequestState
impl Send for VerificationRequestState
impl Sync for VerificationRequestState
impl Unpin for VerificationRequestState
impl !UnwindSafe for VerificationRequestState
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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