pub enum VerificationState {
Show 13 variants
Created,
Requested,
NoSupportedMethods,
Ready,
SasConfirm,
QrScan,
QrScanned,
QrConfirm,
Done,
Cancelled,
Dismissed,
RoomLeft,
Error,
}Variants§
Created
We created and sent the request.
We must wait for the other user/device to accept it.
Requested
The other user/device sent us a request.
We should ask the user if they want to accept it.
NoSupportedMethods
We support none of the other user’s verification methods.
Ready
The request was accepted.
We should ask the user to choose a method.
SasConfirm
An SAS verification was started.
We should show the emojis and ask the user to confirm that they match.
QrScan
The user wants to scan a QR Code.
QrScanned
The user scanned a QR Code.
QrConfirm
Our QR Code was scanned.
We should ask the user to confirm that the QR Code was scanned successfully.
Done
The verification was successful.
Cancelled
The verification was cancelled.
Dismissed
The verification was automatically dismissed.
Happens when a received request is not accepted by us after 2 minutes.
RoomLeft
The verification was happening in-room but the room was left.
Error
An unexpected error happened.
Implementations§
Source§impl VerificationState
impl VerificationState
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
Source§impl Clone for VerificationState
impl Clone for VerificationState
Source§fn clone(&self) -> VerificationState
fn clone(&self) -> VerificationState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationState
impl Debug for VerificationState
Source§impl Default for VerificationState
impl Default for VerificationState
Source§fn default() -> VerificationState
fn default() -> VerificationState
Source§impl From<VerificationState> for Value
impl From<VerificationState> for Value
Source§fn from(v: VerificationState) -> Self
fn from(v: VerificationState) -> Self
Source§impl<'a> FromValue<'a> for VerificationState
impl<'a> FromValue<'a> for VerificationState
Source§type Checker = GenericValueTypeChecker<VerificationState>
type Checker = GenericValueTypeChecker<VerificationState>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for VerificationState
impl HasParamSpec for VerificationState
type ParamSpec = ParamSpecEnum
Source§type SetValue = VerificationState
type SetValue = VerificationState
type BuilderFn = fn(&str, VerificationState) -> ParamSpecEnumBuilder<'_, VerificationState>
fn param_spec_builder() -> Self::BuilderFn
Source§impl IntoGlib for VerificationState
impl IntoGlib for VerificationState
Source§impl PartialEq for VerificationState
impl PartialEq for VerificationState
Source§impl StaticType for VerificationState
impl StaticType for VerificationState
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for VerificationState
impl ToValue for VerificationState
Source§impl TryFromGlib<i32> for VerificationState
impl TryFromGlib<i32> for VerificationState
Source§impl ValueType for VerificationState
impl ValueType for VerificationState
Source§type Type = VerificationState
type Type = VerificationState
Type from. Read moreimpl Copy for VerificationState
impl Eq for VerificationState
impl StructuralPartialEq for VerificationState
Auto Trait Implementations§
impl Freeze for VerificationState
impl RefUnwindSafe for VerificationState
impl Send for VerificationState
impl Sync for VerificationState
impl Unpin for VerificationState
impl UnsafeUnpin for VerificationState
impl UnwindSafe for VerificationState
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
type BuilderFnDefaulted = fn(&str) -> ParamSpecEnumBuilder<'_, T>
fn param_spec_builder_defaulted() -> <T as HasParamSpecDefaulted>::BuilderFnDefaulted
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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.