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),
}
Expand description
An Enum describing the state the verification request is in.
Variants§
Created
The verification request has been newly created by us.
Requested
Fields
§
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
§
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§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
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>