pub enum RecoveredFrom {
Backup {
name: Option<String>,
updated: bool,
},
Library {
folder: PathBuf,
replica: Option<EntityId>,
replaced: bool,
set_aside: Option<PathBuf>,
},
}Expand description
What a recovery took the library from.
Variants§
Backup
A backup.
Fields
Library
A library on this computer that no longer unlocked.
Fields
§
replaced: boolWhether it was the library where the new replica went, which the new one replaces; otherwise it is as it was.
§
set_aside: Option<PathBuf>Where its folder was set aside, beside the new replica’s, if it was replaced:
None if it could not be set aside yet, as when another program has a file of it
open, which the library tries again as it opens. Its keys, and what it holds, are
of no more use: the person deletes it.
Trait Implementations§
Source§impl Clone for RecoveredFrom
impl Clone for RecoveredFrom
Source§impl Debug for RecoveredFrom
impl Debug for RecoveredFrom
impl Eq for RecoveredFrom
Source§impl PartialEq for RecoveredFrom
impl PartialEq for RecoveredFrom
impl StructuralPartialEq for RecoveredFrom
Auto Trait Implementations§
impl Forget for RecoveredFrom
impl Freeze for RecoveredFrom
impl Move for RecoveredFrom
impl RefUnwindSafe for RecoveredFrom
impl Send for RecoveredFrom
impl Sync for RecoveredFrom
impl Unpin for RecoveredFrom
impl UnsafeUnpin for RecoveredFrom
impl UnwindSafe for RecoveredFrom
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.