pub struct MigrationStats {
pub attempts: AtomicU64,
pub successful: AtomicU64,
pub failed: AtomicU64,
pub paths_probed: AtomicU64,
pub avg_migration_time_ms: AtomicU64,
}Expand description
Statistics for migration operations
Fields§
§attempts: AtomicU64Total migration attempts
successful: AtomicU64Successful migrations
failed: AtomicU64Failed migrations
paths_probed: AtomicU64Paths probed
avg_migration_time_ms: AtomicU64Average migration time (ms)
Implementations§
Source§impl MigrationStats
impl MigrationStats
Sourcepub fn record_attempt(&self, success: bool, duration: Duration)
pub fn record_attempt(&self, success: bool, duration: Duration)
Record a migration attempt result
Sourcepub fn record_probe(&self)
pub fn record_probe(&self)
Record a path probe
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate as 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