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,
other_device_data: DeviceData,
},
Done,
Cancelled(CancelInfo),
}
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.
other_device_data: DeviceData
The device data of the device that responded to the verification request.
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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