pub struct MigrationProgress { /* private fields */ }Expand description
Progress tracker for migration operations.
Implementations§
Source§impl MigrationProgress
impl MigrationProgress
Sourcepub fn with_callback(callback: ProgressCallback) -> Self
pub fn with_callback(callback: ProgressCallback) -> Self
Create a progress tracker with a callback.
Sourcepub fn set_phase(&self, phase: MigrationPhase, total: u64)
pub fn set_phase(&self, phase: MigrationPhase, total: u64)
Set the current phase.
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
Get current progress percentage.
Sourcepub fn current_phase(&self) -> MigrationPhase
pub fn current_phase(&self) -> MigrationPhase
Get current phase.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MigrationProgress
impl !RefUnwindSafe for MigrationProgress
impl !UnwindSafe for MigrationProgress
impl Send for MigrationProgress
impl Sync for MigrationProgress
impl Unpin for MigrationProgress
impl UnsafeUnpin for MigrationProgress
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