pub enum IdentityState {
Verified,
Pinned,
PinViolation,
VerificationViolation,
}
Expand description
The state of an identity - verified, pinned etc.
Variants§
Verified
The user is verified with us
Pinned
Either this is the first identity we have seen for this user, or the user has acknowledged a change of identity explicitly e.g. by clicking OK on a notification.
PinViolation
The user’s identity has changed since it was pinned. The user should be
notified about this and given the opportunity to acknowledge the
change, which will make the new identity pinned.
When the user acknowledges the change, the app should call
crate::OtherUserIdentity::pin_current_master_key
.
VerificationViolation
The user’s identity has changed, and before that it was verified. This
is a serious problem. The user can either verify again to make this
identity verified, or withdraw verification
UserIdentity::withdraw_verification
to make it pinned.
Trait Implementations§
Source§impl Clone for IdentityState
impl Clone for IdentityState
Source§fn clone(&self) -> IdentityState
fn clone(&self) -> IdentityState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<UT> ConvertError<UT> for IdentityState
impl<UT> ConvertError<UT> for IdentityState
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for IdentityState
impl Debug for IdentityState
Source§impl<UT> FfiConverter<UT> for IdentityState
impl<UT> FfiConverter<UT> for IdentityState
Source§const TYPE_ID_META: MetadataBuffer = _
const TYPE_ID_META: MetadataBuffer = _
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for IdentityState
impl<UT> Lift<UT> for IdentityState
Source§impl<UT> LiftRef<UT> for IdentityState
impl<UT> LiftRef<UT> for IdentityState
type LiftType = IdentityState
Source§impl<UT> LiftReturn<UT> for IdentityState
impl<UT> LiftReturn<UT> for IdentityState
Source§type ReturnType = <IdentityState as Lift<UT>>::FfiType
type ReturnType = <IdentityState as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for IdentityState
impl<UT> Lower<UT> for IdentityState
type FfiType = <IdentityState as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for IdentityState
impl<UT> LowerError<UT> for IdentityState
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for IdentityState
impl<UT> LowerReturn<UT> for IdentityState
Source§type ReturnType = <IdentityState as Lower<UT>>::FfiType
type ReturnType = <IdentityState as Lower<UT>>::FfiType
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
Source§impl Ord for IdentityState
impl Ord for IdentityState
Source§fn cmp(&self, other: &IdentityState) -> Ordering
fn cmp(&self, other: &IdentityState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IdentityState
impl PartialEq for IdentityState
Source§impl PartialOrd for IdentityState
impl PartialOrd for IdentityState
Source§impl<UT> TypeId<UT> for IdentityState
impl<UT> TypeId<UT> for IdentityState
const TYPE_ID_META: MetadataBuffer = _
impl Eq for IdentityState
impl StructuralPartialEq for IdentityState
Auto Trait Implementations§
impl Freeze for IdentityState
impl RefUnwindSafe for IdentityState
impl Send for IdentityState
impl Sync for IdentityState
impl Unpin for IdentityState
impl UnwindSafe for IdentityState
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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