pub struct RecoveryStats {
pub total_recoveries: usize,
pub successful_recoveries: usize,
pub failed_recoveries: usize,
pub total_retries: usize,
pub total_checkpoints: usize,
}Expand description
Statistics about recovery operations
Fields§
§total_recoveries: usize§successful_recoveries: usize§failed_recoveries: usize§total_retries: usize§total_checkpoints: usizeImplementations§
Source§impl RecoveryStats
impl RecoveryStats
pub fn new() -> Self
pub fn record_recovery(&mut self, success: bool)
pub fn record_retry(&mut self)
pub fn record_checkpoint(&mut self)
pub fn recovery_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for RecoveryStats
impl Clone for RecoveryStats
Source§fn clone(&self) -> RecoveryStats
fn clone(&self) -> RecoveryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoveryStats
impl Debug for RecoveryStats
Source§impl Default for RecoveryStats
impl Default for RecoveryStats
Source§fn default() -> RecoveryStats
fn default() -> RecoveryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecoveryStats
impl RefUnwindSafe for RecoveryStats
impl Send for RecoveryStats
impl Sync for RecoveryStats
impl Unpin for RecoveryStats
impl UnwindSafe for RecoveryStats
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