pub enum RecoveredFrom {
Primary,
Bak,
Bak2,
Fresh,
EmptyFallback,
Unloaded,
}Expand description
Where reload sourced its data from.
Matches the Python RECOVERED_* constants.
Variants§
Primary
Primary file loaded cleanly.
Bak
Primary unreadable; loaded from first-generation backup.
Bak2
Primary and first backup unreadable; loaded from second-generation backup.
Fresh
No file existed anywhere — first run, not a data-loss event.
EmptyFallback
At least one file existed but all were unreadable — data loss.
Unloaded
reload has not been run yet (in-memory only).
Trait Implementations§
Source§impl Clone for RecoveredFrom
impl Clone for RecoveredFrom
Source§fn clone(&self) -> RecoveredFrom
fn clone(&self) -> RecoveredFrom
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoveredFrom
impl Debug for RecoveredFrom
Source§impl PartialEq for RecoveredFrom
impl PartialEq for RecoveredFrom
impl Copy for RecoveredFrom
impl Eq for RecoveredFrom
impl StructuralPartialEq for RecoveredFrom
Auto Trait Implementations§
impl Freeze for RecoveredFrom
impl RefUnwindSafe for RecoveredFrom
impl Send for RecoveredFrom
impl Sync for RecoveredFrom
impl Unpin 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