pub struct RecoveryConfig {
pub strategy: RecoveryStrategy,
pub max_retries: usize,
pub initial_delay: Duration,
pub max_delay: Duration,
pub backoff_multiplier: f64,
pub track_failures: bool,
pub max_failure_history: usize,
}Expand description
Configuration for recovery.
Fields§
§strategy: RecoveryStrategyRecovery strategy
max_retries: usizeMaximum retry attempts
initial_delay: DurationInitial retry delay
max_delay: DurationMaximum retry delay
backoff_multiplier: f64Backoff multiplier
track_failures: boolEnable failure tracking
max_failure_history: usizeMaximum failure history size
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
Source§impl Default for RecoveryConfig
impl Default for RecoveryConfig
Source§impl<'de> Deserialize<'de> for RecoveryConfig
impl<'de> Deserialize<'de> for RecoveryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RecoveryConfig
impl RefUnwindSafe for RecoveryConfig
impl Send for RecoveryConfig
impl Sync for RecoveryConfig
impl Unpin for RecoveryConfig
impl UnsafeUnpin 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