Enum Tail
pub enum Tail {
Clean,
Torn {
at: usize,
},
Corrupt {
at: usize,
later_lsn: Lsn,
},
}Expand description
How a scanned segment ended.
Variants§
Clean
The valid prefix is followed by zeros.
Torn
The valid prefix is followed by bytes that never formed a valid frame: a write that never completed. Safe to discard.
Corrupt
A frame after the damaged one is valid: records that were durable have been lost from the middle of the log.
Trait Implementations§
impl Copy for Tail
impl Eq for Tail
impl StructuralPartialEq for Tail
Auto Trait Implementations§
impl Freeze for Tail
impl RefUnwindSafe for Tail
impl Send for Tail
impl Sync for Tail
impl Unpin for Tail
impl UnsafeUnpin for Tail
impl UnwindSafe for Tail
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