pub struct FaultToleranceConfig {
pub enable_retry: bool,
pub max_retries: u32,
pub backoff_strategy: BackoffStrategy,
pub enable_circuit_breaker: bool,
pub circuit_breaker_threshold: u32,
pub circuit_breaker_timeout: Duration,
pub enable_failover: bool,
pub failover_targets: Vec<String>,
pub health_check: HealthCheckConfig,
pub enable_graceful_degradation: bool,
pub failure_detection: FailureDetectionStrategy,
pub recovery_strategy: RecoveryStrategy,
}Expand description
Fault tolerance and reliability configuration
Fields§
§enable_retry: bool§max_retries: u32§backoff_strategy: BackoffStrategy§enable_circuit_breaker: bool§circuit_breaker_threshold: u32§circuit_breaker_timeout: Duration§enable_failover: bool§failover_targets: Vec<String>§health_check: HealthCheckConfig§enable_graceful_degradation: bool§failure_detection: FailureDetectionStrategy§recovery_strategy: RecoveryStrategyImplementations§
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
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