pub enum RestoreSyncMode {
StripSyncIdentity,
PreserveSyncIdentity,
ForkWithNewSyncIdentity,
}Expand description
Controls how restore writes sync identity metadata.
Variants§
StripSyncIdentity
Restore the durable database files but do not recreate sync identity. This is the default for ordinary backup restore so restored data dirs remain safe for the plain PowDB engine lifecycle.
PreserveSyncIdentity
Restore keeps the source database identity. This is the right mode for disaster recovery of the same sync lineage through sync-aware open/checkpoint paths.
ForkWithNewSyncIdentity
Restore mints a fresh database identity after verifying the source sync snapshot metadata. Use this for clone/fork restores that must not share replication lineage with the source database.
Trait Implementations§
Source§impl Clone for RestoreSyncMode
impl Clone for RestoreSyncMode
Source§fn clone(&self) -> RestoreSyncMode
fn clone(&self) -> RestoreSyncMode
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 RestoreSyncMode
Source§impl Debug for RestoreSyncMode
impl Debug for RestoreSyncMode
impl Eq for RestoreSyncMode
Source§impl PartialEq for RestoreSyncMode
impl PartialEq for RestoreSyncMode
impl StructuralPartialEq for RestoreSyncMode
Auto Trait Implementations§
impl Freeze for RestoreSyncMode
impl RefUnwindSafe for RestoreSyncMode
impl Send for RestoreSyncMode
impl Sync for RestoreSyncMode
impl Unpin for RestoreSyncMode
impl UnsafeUnpin for RestoreSyncMode
impl UnwindSafe for RestoreSyncMode
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