pub enum TailState {
Clean,
TruncatedAt {
segment_base: Lsn,
offset: u64,
},
}Expand description
State of the active segment’s tail after recovery (§6).
Variants§
Clean
The tail ended cleanly (sentinel / end of records); no truncation.
TruncatedAt
A torn tail was detected, truncated, and durably zeroed at this offset of the active segment (§8.2.1).
Trait Implementations§
impl Copy for TailState
impl Eq for TailState
impl StructuralPartialEq for TailState
Auto Trait Implementations§
impl Freeze for TailState
impl RefUnwindSafe for TailState
impl Send for TailState
impl Sync for TailState
impl Unpin for TailState
impl UnsafeUnpin for TailState
impl UnwindSafe for TailState
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