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
The verification request was received from the other party.
Fields
§
other_device_id: OwnedDeviceId
The device ID of the device that responded to the verification request.
Ready
The verification request is ready to start a verification flow.
Fields
§
other_device_id: OwnedDeviceId
The device ID 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
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 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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Converts
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>
Converts
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