#[non_exhaustive]pub enum RestoreOutcome {
Fresh,
Resumed,
SessionsDiscarded,
}Expand description
What the last sign-in or connect found, read with
restore_outcome: whether the sessions a
restored state carried are in use, or were discarded because the state
was older than one already seen. The same three values on every head.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fresh
No sessions were restored: a fresh identity, or one restored from an identity alone.
Resumed
The state’s sessions resumed as they were.
SessionsDiscarded
The state was older than one already seen (a rollback, caught by the secure store’s counter or by the directory), so its sessions were discarded and the identity kept: conversations re-establish on next contact. Show it to the user; keep the blob.
Implementations§
Trait Implementations§
Source§impl Clone for RestoreOutcome
impl Clone for RestoreOutcome
Source§fn clone(&self) -> RestoreOutcome
fn clone(&self) -> RestoreOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RestoreOutcome
Source§impl Debug for RestoreOutcome
impl Debug for RestoreOutcome
impl Eq for RestoreOutcome
Source§impl PartialEq for RestoreOutcome
impl PartialEq for RestoreOutcome
Source§fn eq(&self, other: &RestoreOutcome) -> bool
fn eq(&self, other: &RestoreOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestoreOutcome
Auto Trait Implementations§
impl Freeze for RestoreOutcome
impl RefUnwindSafe for RestoreOutcome
impl Send for RestoreOutcome
impl Sync for RestoreOutcome
impl Unpin for RestoreOutcome
impl UnsafeUnpin for RestoreOutcome
impl UnwindSafe for RestoreOutcome
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