#[non_exhaustive]pub struct RefreshReport { /* private fields */ }Expand description
What one Reader::refresh added to a snapshot.
The counts describe only the frames discovered by that call, never the
frames the snapshot already held, so the sum of a report’s
blocks_added across refreshes is the total number
of blocks the refresh path has contributed.
Implementations§
Source§impl RefreshReport
impl RefreshReport
Sourcepub fn blocks_added(&self) -> u64
pub fn blocks_added(&self) -> u64
Complete data frames discovered and added by this refresh.
Sourcepub fn rows_added(&self) -> u64
pub fn rows_added(&self) -> u64
The checked sum of the row counts of the added blocks.
Sourcepub fn previous_file_size(&self) -> u64
pub fn previous_file_size(&self) -> u64
The file extent this snapshot held before the refresh.
Sourcepub fn observed_file_size(&self) -> u64
pub fn observed_file_size(&self) -> u64
The file extent the refresh observed.
Sourcepub fn incomplete_tail(&self) -> bool
pub fn incomplete_tail(&self) -> bool
Whether the refresh left a physically incomplete frame after the last complete committed frame.
True here does not mean the snapshot is damaged: an interrupted append exposes no block and a later refresh may see that tail become a complete committed frame.
Trait Implementations§
Source§impl Clone for RefreshReport
impl Clone for RefreshReport
Source§fn clone(&self) -> RefreshReport
fn clone(&self) -> RefreshReport
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 RefreshReport
Source§impl Debug for RefreshReport
impl Debug for RefreshReport
impl Eq for RefreshReport
Source§impl PartialEq for RefreshReport
impl PartialEq for RefreshReport
impl StructuralPartialEq for RefreshReport
Auto Trait Implementations§
impl Freeze for RefreshReport
impl RefUnwindSafe for RefreshReport
impl Send for RefreshReport
impl Sync for RefreshReport
impl Unpin for RefreshReport
impl UnsafeUnpin for RefreshReport
impl UnwindSafe for RefreshReport
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