pub struct RecoveryConfig {
pub enable_auto_retry: bool,
pub max_retry_attempts: usize,
pub retry_interval_ms: u64,
pub retry_backoff_factor: f64,
pub max_retry_interval_ms: u64,
pub enable_graceful_degradation: bool,
pub degradation_threshold: f64,
pub recovery_threshold: f64,
pub enable_partial_save: bool,
pub partial_save_directory: PathBuf,
pub partial_save_interval: usize,
pub verbose_logging: bool,
}
Expand description
recovery config
Fields§
§enable_auto_retry: bool
whether to enable auto retry
max_retry_attempts: usize
max retry attempts
retry_interval_ms: u64
retry interval (milliseconds)
retry_backoff_factor: f64
retry interval backoff factor
max_retry_interval_ms: u64
max retry interval (milliseconds)
enable_graceful_degradation: bool
whether to enable graceful degradation
degradation_threshold: f64
degradation threshold (error rate percentage)
recovery_threshold: f64
recovery threshold (error rate percentage)
enable_partial_save: bool
whether to enable partial result saving
partial_save_directory: PathBuf
partial result save directory
partial_save_interval: usize
partial result save interval (operations count)
verbose_logging: bool
whether to enable verbose logging
Trait Implementations§
Source§impl Clone for RecoveryConfig
impl Clone for RecoveryConfig
Source§fn clone(&self) -> RecoveryConfig
fn clone(&self) -> RecoveryConfig
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 RecoveryConfig
impl Debug for RecoveryConfig
Auto Trait Implementations§
impl Freeze for RecoveryConfig
impl RefUnwindSafe for RecoveryConfig
impl Send for RecoveryConfig
impl Sync for RecoveryConfig
impl Unpin for RecoveryConfig
impl UnwindSafe for RecoveryConfig
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