pub struct JournalState {
pub info: JournalInfoBlock,
pub header: JournalHeader,
pub transactions: Vec<TransactionSummary>,
pub partial: bool,
pub checksum_mismatch: Option<u32>,
pub sequence_jumps: Vec<(u32, u32)>,
}Expand description
Read-only state of a parsed journal — enough for the history viewer and the fsck journal phase.
Fields§
§info: JournalInfoBlock§header: JournalHeader§transactions: Vec<TransactionSummary>§partial: boolTrue when the walk stopped early on a corrupt/short transaction.
checksum_mismatch: Option<u32>Sequence number of the transaction whose block-list-header checksum failed (the walk stops there, like macOS replay), if any.
sequence_jumps: Vec<(u32, u32)>(from, to) for each point where the sequence number did not advance
by one. macOS stops replay at the first such jump.
Implementations§
Source§impl JournalState
impl JournalState
Sourcepub fn pending_bytes(&self) -> u64
pub fn pending_bytes(&self) -> u64
Total bytes of block payloads across all pending transactions.
Trait Implementations§
Source§impl Clone for JournalState
impl Clone for JournalState
Auto Trait Implementations§
impl Freeze for JournalState
impl RefUnwindSafe for JournalState
impl Send for JournalState
impl Sync for JournalState
impl Unpin for JournalState
impl UnsafeUnpin for JournalState
impl UnwindSafe for JournalState
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