pub struct RollbackJournalSource {
pub segment: usize,
pub pgno: u32,
pub header_state: JournalHeaderState,
pub checksum_valid: Option<bool>,
}Expand description
Provenance for a record recovered from a rollback journal (design §5):
where in the journal its page image lived and how trustworthy the parse was.
Copy (all fields are scalar) so it threads through the existing
attribution → output pipeline exactly like WalProvenance; the journal’s
path is supplied once at the API boundary, not duplicated per row.
Fields§
§segment: usize0-based journal segment the page image came from.
pgno: u321-based database page number the prior image restored.
header_state: JournalHeaderStateWhether the header was intact (Tier A) or reconstructed (Tier B).
checksum_valid: Option<bool>Some(true/false) when the page checksum could be verified (Tier A);
None in Tier B (nonce zeroed).
Trait Implementations§
Source§impl Clone for RollbackJournalSource
impl Clone for RollbackJournalSource
Source§fn clone(&self) -> RollbackJournalSource
fn clone(&self) -> RollbackJournalSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RollbackJournalSource
Source§impl Debug for RollbackJournalSource
impl Debug for RollbackJournalSource
impl Eq for RollbackJournalSource
Source§impl PartialEq for RollbackJournalSource
impl PartialEq for RollbackJournalSource
impl StructuralPartialEq for RollbackJournalSource
Auto Trait Implementations§
impl Freeze for RollbackJournalSource
impl RefUnwindSafe for RollbackJournalSource
impl Send for RollbackJournalSource
impl Sync for RollbackJournalSource
impl Unpin for RollbackJournalSource
impl UnsafeUnpin for RollbackJournalSource
impl UnwindSafe for RollbackJournalSource
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