pub enum CorruptionReason {
Record {
location: CorruptionLocation,
error: RecordError,
},
FirstSequenceMismatch {
expected: LogSeq,
actual: LogSeq,
location: CorruptionLocation,
},
SequenceGap {
expected: LogSeq,
actual: LogSeq,
location: CorruptionLocation,
},
SequenceRegression {
expected: LogSeq,
actual: LogSeq,
location: CorruptionLocation,
},
}Expand description
Specific corruption signal that ended replay.
Variants§
Record
Record framing or checksum validation failed.
Fields
§
location: CorruptionLocationTail versus proven middle corruption.
§
error: RecordErrorExact record validation failure.
FirstSequenceMismatch
The first valid record disagreed with the sequence declared by the file header.
Fields
§
location: CorruptionLocationTail versus proven middle corruption.
SequenceGap
A valid record skipped one or more required sequence numbers.
Fields
§
location: CorruptionLocationTail versus proven middle corruption.
SequenceRegression
A valid record repeated or regressed below the required sequence.
Trait Implementations§
Source§impl Clone for CorruptionReason
impl Clone for CorruptionReason
impl Copy for CorruptionReason
Source§impl Debug for CorruptionReason
impl Debug for CorruptionReason
impl Eq for CorruptionReason
Source§impl PartialEq for CorruptionReason
impl PartialEq for CorruptionReason
impl StructuralPartialEq for CorruptionReason
Auto Trait Implementations§
impl Freeze for CorruptionReason
impl RefUnwindSafe for CorruptionReason
impl Send for CorruptionReason
impl Sync for CorruptionReason
impl Unpin for CorruptionReason
impl UnsafeUnpin for CorruptionReason
impl UnwindSafe for CorruptionReason
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