Enum matrix_sdk::encryption::recovery::RecoveryState
source · pub enum RecoveryState {
Unknown,
Enabled,
Disabled,
Incomplete,
}
Expand description
The states the recovery subsystem can be in.
You can listen on the state of the recovery mechanism using the
Recovery::state_stream()
method.
Variants§
Unknown
We didn’t yet inform ourselves about the state of things.
Enabled
Secret storage is set up and we have all the secrets locally.
Disabled
No default secret storage key exists or it is disabled explicitly using the account data event.
Incomplete
Secret storage is set up but we’re missing some secrets.
Trait Implementations§
source§impl Clone for RecoveryState
impl Clone for RecoveryState
source§fn clone(&self) -> RecoveryState
fn clone(&self) -> RecoveryState
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 moresource§impl Debug for RecoveryState
impl Debug for RecoveryState
source§impl Default for RecoveryState
impl Default for RecoveryState
source§fn default() -> RecoveryState
fn default() -> RecoveryState
Returns the “default value” for a type. Read more
source§impl PartialEq for RecoveryState
impl PartialEq for RecoveryState
source§fn eq(&self, other: &RecoveryState) -> bool
fn eq(&self, other: &RecoveryState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecoveryState
impl Eq for RecoveryState
impl StructuralPartialEq for RecoveryState
Auto Trait Implementations§
impl Freeze for RecoveryState
impl RefUnwindSafe for RecoveryState
impl Send for RecoveryState
impl Sync for RecoveryState
impl Unpin for RecoveryState
impl UnwindSafe for RecoveryState
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
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, 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