pub enum ReplayTerminator {
InvalidHeader(WalHeaderError),
CleanEnd,
CorruptAt {
offset: usize,
reason: CorruptionReason,
},
}Expand description
Why replay stopped after its trusted prefix.
Variants§
InvalidHeader(WalHeaderError)
WAL file-header validation failed before record replay began.
CleanEnd
All bytes ended exactly after a valid record, or the log was empty.
CorruptAt
Replay stopped before consuming the named invalid record.
Fields
§
reason: CorruptionReasonSpecific validation or sequence failure.
Trait Implementations§
Source§impl Clone for ReplayTerminator
impl Clone for ReplayTerminator
impl Copy for ReplayTerminator
Source§impl Debug for ReplayTerminator
impl Debug for ReplayTerminator
impl Eq for ReplayTerminator
Source§impl PartialEq for ReplayTerminator
impl PartialEq for ReplayTerminator
impl StructuralPartialEq for ReplayTerminator
Auto Trait Implementations§
impl Freeze for ReplayTerminator
impl RefUnwindSafe for ReplayTerminator
impl Send for ReplayTerminator
impl Sync for ReplayTerminator
impl Unpin for ReplayTerminator
impl UnsafeUnpin for ReplayTerminator
impl UnwindSafe for ReplayTerminator
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