pub enum FsckError {
MissingObject {
cid: String,
referenced_by: String,
},
CorruptObject {
cid: String,
reason: String,
},
InvalidHead {
reason: String,
},
InvalidIndex {
reason: String,
},
OrphanedLock,
DataLoss {
commit_cid: String,
parent_cid: String,
commit_files: usize,
parent_files: usize,
},
}Expand description
Critical errors found during integrity check.
Variants§
MissingObject
An object was referenced but not found in the store.
CorruptObject
An object exists but is corrupt (failed decryption or parsing).
InvalidHead
HEAD is invalid or points to non-existent commit.
InvalidIndex
Index is corrupt or invalid.
OrphanedLock
Stale lock file exists.
DataLoss
A commit has significantly fewer files than its parent (potential data loss).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FsckError
impl RefUnwindSafe for FsckError
impl Send for FsckError
impl Sync for FsckError
impl Unpin for FsckError
impl UnsafeUnpin for FsckError
impl UnwindSafe for FsckError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more