pub struct RefLogReplay {
pub records: Vec<RefLogRecord>,
pub trailing_partial_bytes: usize,
pub record_outcomes: Vec<RefLogRecordOutcome>,
}Expand description
One ref’s own log replay result – replay_ref_subsequence’s own return type.
Fields§
§records: Vec<RefLogRecord>Valid records read from this ref’s own subsequence, in relative order – includes records found after a damaged one (RFC 102 Stage 2), not merely a prefix up to the first failure.
trailing_partial_bytes: usizeThis ref’s own attributed trailing-partial byte count (design-v1.md §13.6 point 2) – zero unless the container’s own physical trailing partial tail’s header could be read and claims this ref specifically.
record_outcomes: Vec<RefLogRecordOutcome>One outcome per attempted frame attributable to this ref, in scan order – both Evaluated
and Failed.
Implementations§
Source§impl RefLogReplay
impl RefLogReplay
Sourcepub fn has_item_failure(&self) -> bool
pub fn has_item_failure(&self) -> bool
Return true when any attempted frame attributable to this ref failed to validate.
Trait Implementations§
Source§impl Clone for RefLogReplay
impl Clone for RefLogReplay
Source§fn clone(&self) -> RefLogReplay
fn clone(&self) -> RefLogReplay
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 moreSource§impl Debug for RefLogReplay
impl Debug for RefLogReplay
impl Eq for RefLogReplay
Source§impl PartialEq for RefLogReplay
impl PartialEq for RefLogReplay
impl StructuralPartialEq for RefLogReplay
Auto Trait Implementations§
impl Freeze for RefLogReplay
impl RefUnwindSafe for RefLogReplay
impl Send for RefLogReplay
impl Sync for RefLogReplay
impl Unpin for RefLogReplay
impl UnsafeUnpin for RefLogReplay
impl UnwindSafe for RefLogReplay
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