pub enum EnableProgress {
Starting,
CreatingBackup,
CreatingRecoveryKey,
BackingUp(RoomKeyCounts),
RoomKeyUploadError,
Done {
recovery_key: String,
},
}
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§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