pub struct RecoveryReport {
pub total_errors: usize,
pub successful_recoveries: usize,
pub failed_recoveries: usize,
pub success_rate: f64,
pub total_retries: usize,
pub degradation_count: usize,
pub partial_saves: usize,
pub avg_recovery_time_ms: f64,
pub current_degradation_level: DegradationLevel,
pub is_currently_degraded: bool,
}
Expand description
Recovery report containing statistics and current status
Fields§
§total_errors: usize
Total number of errors encountered
successful_recoveries: usize
Number of successful recovery attempts
failed_recoveries: usize
Number of failed recovery attempts
success_rate: f64
Success rate as percentage (0.0-1.0)
total_retries: usize
Total number of retry attempts
degradation_count: usize
Number of times system entered degraded mode
partial_saves: usize
Number of partial saves performed
avg_recovery_time_ms: f64
Average recovery time in milliseconds
current_degradation_level: DegradationLevel
Current degradation level
is_currently_degraded: bool
Whether system is currently in degraded mode
Implementations§
Source§impl RecoveryReport
impl RecoveryReport
Sourcepub fn print_detailed_report(&self)
pub fn print_detailed_report(&self)
print detailed recovery report
Trait Implementations§
Source§impl Clone for RecoveryReport
impl Clone for RecoveryReport
Source§fn clone(&self) -> RecoveryReport
fn clone(&self) -> RecoveryReport
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 moreAuto Trait Implementations§
impl Freeze for RecoveryReport
impl RefUnwindSafe for RecoveryReport
impl Send for RecoveryReport
impl Sync for RecoveryReport
impl Unpin for RecoveryReport
impl UnwindSafe for RecoveryReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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