pub struct MigrationStats {
pub blocks_read: u64,
pub blocks_migrated: u64,
pub v1_blocks_found: u64,
pub v2_blocks_found: u64,
pub checksum_failures: u64,
}Expand description
Block format migration statistics
Fields§
§blocks_read: u64§blocks_migrated: u64§v1_blocks_found: u64§v2_blocks_found: u64§checksum_failures: u64Implementations§
Source§impl MigrationStats
impl MigrationStats
pub fn record_read(&mut self, version: FormatVersion)
pub fn record_migration(&mut self)
pub fn record_checksum_failure(&mut self)
Sourcepub fn migration_progress(&self) -> f64
pub fn migration_progress(&self) -> f64
Migration progress percentage
Trait Implementations§
Source§impl Debug for MigrationStats
impl Debug for MigrationStats
Source§impl Default for MigrationStats
impl Default for MigrationStats
Source§fn default() -> MigrationStats
fn default() -> MigrationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationStats
impl RefUnwindSafe for MigrationStats
impl Send for MigrationStats
impl Sync for MigrationStats
impl Unpin for MigrationStats
impl UnwindSafe for MigrationStats
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> 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