pub struct PushLogScan {
pub pushes: Vec<RecordBatch>,
pub torn_tail_bytes: u64,
}Expand description
What a scan of a log recovered, and what it had to throw away.
Fields§
§pushes: Vec<RecordBatch>The complete frames, in push order. One entry per push.
torn_tail_bytes: u64Bytes at the tail that did not form a complete frame — a push that was interrupted. Zero for a cleanly closed log.
Deliberately reported rather than silently dropped: “the last push did not land” is information the caller may need, and a scan that quietly swallowed it would be indistinguishable from a clean log.
Implementations§
Trait Implementations§
Source§impl Debug for PushLogScan
impl Debug for PushLogScan
Source§impl Default for PushLogScan
impl Default for PushLogScan
Source§fn default() -> PushLogScan
fn default() -> PushLogScan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PushLogScan
impl !UnwindSafe for PushLogScan
impl Freeze for PushLogScan
impl Send for PushLogScan
impl Sync for PushLogScan
impl Unpin for PushLogScan
impl UnsafeUnpin for PushLogScan
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