pub struct EvolutionStats {
pub rows_migrated: AtomicU64,
pub migrations_applied: AtomicU64,
pub migration_errors: AtomicU64,
pub lazy_migrations: AtomicU64,
pub background_migrations: AtomicU64,
}Expand description
Statistics for schema evolution operations
Fields§
§rows_migrated: AtomicU64§migrations_applied: AtomicU64§migration_errors: AtomicU64§lazy_migrations: AtomicU64§background_migrations: AtomicU64Implementations§
Source§impl EvolutionStats
impl EvolutionStats
pub fn record_lazy_migration(&self)
pub fn record_background_migration(&self, count: u64)
pub fn record_migration_applied(&self)
pub fn record_error(&self)
pub fn snapshot(&self) -> EvolutionStatsSnapshot
Trait Implementations§
Source§impl Debug for EvolutionStats
impl Debug for EvolutionStats
Source§impl Default for EvolutionStats
impl Default for EvolutionStats
Source§fn default() -> EvolutionStats
fn default() -> EvolutionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for EvolutionStats
impl RefUnwindSafe for EvolutionStats
impl Send for EvolutionStats
impl Sync for EvolutionStats
impl Unpin for EvolutionStats
impl UnwindSafe for EvolutionStats
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