pub struct VolumeScan {
pub seen: usize,
pub kept: usize,
pub corrupt: usize,
pub bytes_read: u64,
pub end: VolumeEnd,
}Expand description
What RecoveryReader::read_volume found in one volume.
Fields§
§seen: usizeIntact RecoverySlice packets for this set found in the volume, duplicates of exponents already held included. Packets skipped for budget are counted without their hash being checked.
kept: usizeRows from this volume that were added to the reader. A later volume can evict some of them again.
corrupt: usizeRecoverySlice packets for this set dropped as damaged: a body too short for the slice size, or a packet hash mismatch.
bytes_read: u64Bytes consumed from the stream.
end: VolumeEndWhether the volume was read to its end.
Implementations§
Source§impl VolumeScan
impl VolumeScan
Sourcepub fn read_to_end(&self) -> bool
pub fn read_to_end(&self) -> bool
Whether the whole volume was read. When false, the volume may carry
rows that were never seen, so a shortfall must not be taken to mean
the set is unrepairable.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VolumeScan
impl !UnwindSafe for VolumeScan
impl Freeze for VolumeScan
impl Send for VolumeScan
impl Sync for VolumeScan
impl Unpin for VolumeScan
impl UnsafeUnpin for VolumeScan
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more