pub enum LineageError {
Missing {
path: PathBuf,
},
NotAnArchive {
path: PathBuf,
},
Archived {
path: PathBuf,
},
Mismatch {
expected: LineageId,
actual: LineageId,
},
}Expand description
Why a store’s lineage does not permit a read or write.
Variants§
Missing
A store has no lineage row, so its writable history cannot be identified.
NotAnArchive
A restore forks a new writable lineage, so its source must be a sealed backup archive: an interrupted copy of an archive stays sealed, while one of a live store would be a writable file sharing that store’s lineage.
Archived
A backup archive is read and verified, never written.
Mismatch
The store continues a different writable history than the caller observed.
Trait Implementations§
Source§impl Debug for LineageError
impl Debug for LineageError
Source§impl Display for LineageError
impl Display for LineageError
Source§impl Error for LineageError
impl Error for LineageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LineageError> for StoreError
impl From<LineageError> for StoreError
Source§fn from(source: LineageError) -> Self
fn from(source: LineageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LineageError
impl RefUnwindSafe for LineageError
impl Send for LineageError
impl Sync for LineageError
impl Unpin for LineageError
impl UnsafeUnpin for LineageError
impl UnwindSafe for LineageError
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