pub struct MigrationProgress {
pub total_bytes: u64,
pub transferred_bytes: u64,
pub iteration: u32,
pub current_dirty_pages: u64,
pub previous_dirty_pages: u64,
pub bandwidth_bytes_per_ms: u64,
pub estimated_remaining_ms: u64,
}Expand description
Migration progress tracking (integer-only bandwidth/progress estimation)
Fields§
§total_bytes: u64Total bytes to transfer
transferred_bytes: u64Bytes transferred so far
iteration: u32Current iteration number
current_dirty_pages: u64Dirty pages in current iteration
previous_dirty_pages: u64Dirty pages from previous iteration
bandwidth_bytes_per_ms: u64Estimated bandwidth in bytes per millisecond (integer)
estimated_remaining_ms: u64Estimated remaining time in milliseconds
Implementations§
Source§impl MigrationProgress
impl MigrationProgress
Sourcepub fn update_bandwidth(&mut self, bytes_sent: u64, elapsed_ms: u64)
pub fn update_bandwidth(&mut self, bytes_sent: u64, elapsed_ms: u64)
Update bandwidth estimate (integer math)
bytes_sent: bytes transferred in this iteration
elapsed_ms: time for this iteration in milliseconds
Sourcepub fn estimate_remaining(&mut self)
pub fn estimate_remaining(&mut self)
Estimate remaining transfer time
Sourcepub fn completion_percent(&self) -> u32
pub fn completion_percent(&self) -> u32
Calculate completion percentage (0-100, integer)
Sourcepub fn has_converged(&self, threshold_percent: u32) -> bool
pub fn has_converged(&self, threshold_percent: u32) -> bool
Check if dirty page convergence threshold is met Returns true if dirty pages decreased by at least the given percentage
Trait Implementations§
Source§impl Clone for MigrationProgress
impl Clone for MigrationProgress
Source§fn clone(&self) -> MigrationProgress
fn clone(&self) -> MigrationProgress
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationProgress
impl Debug for MigrationProgress
Source§impl Default for MigrationProgress
impl Default for MigrationProgress
Source§fn default() -> MigrationProgress
fn default() -> MigrationProgress
Returns the “default value” for a type. Read more
Source§impl PartialEq for MigrationProgress
impl PartialEq for MigrationProgress
impl Copy for MigrationProgress
impl Eq for MigrationProgress
impl StructuralPartialEq for MigrationProgress
Auto Trait Implementations§
impl Freeze for MigrationProgress
impl RefUnwindSafe for MigrationProgress
impl Send for MigrationProgress
impl Sync for MigrationProgress
impl Unpin for MigrationProgress
impl UnwindSafe for MigrationProgress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)