pub struct ErrorRecoveryConfig {
pub enable_auto_retry: bool,
pub retry_base_delay: Duration,
pub retry_max_delay: Duration,
pub enable_circuit_breaker: bool,
pub circuit_breaker_threshold: usize,
pub circuit_breaker_timeout: Duration,
}Expand description
Error recovery configuration
Fields§
§enable_auto_retry: boolEnable automatic retry for transient errors
retry_base_delay: DurationBase delay for exponential backoff
retry_max_delay: DurationMaximum delay for exponential backoff
enable_circuit_breaker: boolEnable circuit breaker pattern
circuit_breaker_threshold: usizeCircuit breaker failure threshold
circuit_breaker_timeout: DurationCircuit breaker timeout duration
Trait Implementations§
Source§impl Clone for ErrorRecoveryConfig
impl Clone for ErrorRecoveryConfig
Source§fn clone(&self) -> ErrorRecoveryConfig
fn clone(&self) -> ErrorRecoveryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorRecoveryConfig
impl Debug for ErrorRecoveryConfig
Source§impl Default for ErrorRecoveryConfig
impl Default for ErrorRecoveryConfig
Source§impl<'de> Deserialize<'de> for ErrorRecoveryConfig
impl<'de> Deserialize<'de> for ErrorRecoveryConfig
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 ErrorRecoveryConfig
impl RefUnwindSafe for ErrorRecoveryConfig
impl Send for ErrorRecoveryConfig
impl Sync for ErrorRecoveryConfig
impl Unpin for ErrorRecoveryConfig
impl UnsafeUnpin for ErrorRecoveryConfig
impl UnwindSafe for ErrorRecoveryConfig
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