Enum matrix_sdk::encryption::recovery::EnableProgress
source · pub enum EnableProgress {
Starting,
CreatingBackup,
CreatingRecoveryKey,
BackingUp(RoomKeyCounts),
RoomKeyUploadError,
Done {
recovery_key: String,
},
}
e2e-encryption
only.Expand description
Enum describing the states the Recovery::enable()
method can be in.
Variants§
Starting
The client is just starting the process of enabling recovery, this is the initial state.
CreatingBackup
The client is creating a new server-side key backup.
CreatingRecoveryKey
The client is creating a new recovery key and uploading all the locally cached secrets to the homeserver.
BackingUp(RoomKeyCounts)
The client is currently backing up room keys to the server-side key backup. This state may be emitted multiple times until all room keys have been backed up.
RoomKeyUploadError
The client encountered an error while trying to upload all room keys to the server-side key backup.
Not all room keys may have been backed up, the client will try to back
them up again at a later point. If you’d like to wait for the backup
to finish again you can use the Backups::wait_for_steady_state()
method.
Done
Recovery has been successfully enabled, this is the final state.
Trait Implementations§
source§impl Clone for EnableProgress
impl Clone for EnableProgress
source§fn clone(&self) -> EnableProgress
fn clone(&self) -> EnableProgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableProgress
impl Debug for EnableProgress
source§impl Default for EnableProgress
impl Default for EnableProgress
source§fn default() -> EnableProgress
fn default() -> EnableProgress
source§impl Drop for EnableProgress
impl Drop for EnableProgress
Auto Trait Implementations§
impl Freeze for EnableProgress
impl RefUnwindSafe for EnableProgress
impl Send for EnableProgress
impl Sync for EnableProgress
impl Unpin for EnableProgress
impl UnwindSafe for EnableProgress
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
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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