pub struct FaultToleranceConfig {
pub enabled: bool,
pub sensitivity: f64,
pub max_concurrent_recoveries: usize,
pub global_timeout: Duration,
pub recovery_config: RecoveryConfig,
pub circuit_breaker_config: CircuitBreakerConfig,
pub retry_config: RetryConfig,
pub bulkhead_config: BulkheadConfig,
pub health_check_config: HealthCheckConfig,
pub performance_config: PerformanceConfig,
pub advanced_config: AdvancedConfig,
}Expand description
Comprehensive fault tolerance configuration
Fields§
§enabled: boolEnable fault tolerance globally
sensitivity: f64Fault detection sensitivity (0.0 to 1.0)
max_concurrent_recoveries: usizeMaximum concurrent recovery operations
global_timeout: DurationGlobal timeout for operations
recovery_config: RecoveryConfigRecovery strategy configuration
circuit_breaker_config: CircuitBreakerConfigCircuit breaker configuration
retry_config: RetryConfigRetry configuration
bulkhead_config: BulkheadConfigBulkhead configuration
health_check_config: HealthCheckConfigHealth check configuration
performance_config: PerformanceConfigPerformance monitoring configuration
advanced_config: AdvancedConfigAdvanced features configuration
Trait Implementations§
Source§impl Clone for FaultToleranceConfig
impl Clone for FaultToleranceConfig
Source§fn clone(&self) -> FaultToleranceConfig
fn clone(&self) -> FaultToleranceConfig
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 FaultToleranceConfig
impl Debug for FaultToleranceConfig
Source§impl Default for FaultToleranceConfig
impl Default for FaultToleranceConfig
Source§impl<'de> Deserialize<'de> for FaultToleranceConfig
impl<'de> Deserialize<'de> for FaultToleranceConfig
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 FaultToleranceConfig
impl RefUnwindSafe for FaultToleranceConfig
impl Send for FaultToleranceConfig
impl Sync for FaultToleranceConfig
impl Unpin for FaultToleranceConfig
impl UnwindSafe for FaultToleranceConfig
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> 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