Enum matrix_sdk_crypto::IdentityState
source · 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 Debug for IdentityState
impl Debug for IdentityState
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§fn eq(&self, other: &IdentityState) -> bool
fn eq(&self, other: &IdentityState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IdentityState
impl PartialOrd for IdentityState
source§fn partial_cmp(&self, other: &IdentityState) -> Option<Ordering>
fn partial_cmp(&self, other: &IdentityState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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, 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>
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