pub enum VerificationRequestState {
Created {
our_methods: Vec<VerificationMethod>,
},
Requested {
their_methods: Vec<VerificationMethod>,
other_device_id: OwnedDeviceId,
},
Ready {
their_methods: Vec<VerificationMethod>,
our_methods: Vec<VerificationMethod>,
other_device_id: OwnedDeviceId,
},
Transitioned {
verification: Verification,
},
Done,
Cancelled(CancelInfo),
}
e2e-encryption
only.Expand description
An Enum describing the state the verification request is in.
Variants§
Created
Fields
our_methods: Vec<VerificationMethod>
The verification methods supported by us.
The verification request has been newly created by us.
Requested
Fields
their_methods: Vec<VerificationMethod>
The verification methods supported by the sender.
other_device_id: OwnedDeviceId
The device ID of the device that responded to the verification request.
The verification request was received from the other party.
Ready
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_id: OwnedDeviceId
The device ID of the device that responded to the verification request.
The verification request is ready to start a verification flow.
Transitioned
Fields
verification: Verification
The concrete Verification
object the verification request
transitioned into.
The verification request has transitioned into a concrete verification flow. For example it transitioned into the emoji based SAS verification.
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 !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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>