Expand description
Brief: Circuit breaker implementation for resilience.
- [Error Handling Framework]
- [Circuit Breaker Pattern]
- [Fault Tolerance]
- [Service Resilience]
- [Adaptive Thresholds]
- [Performance Monitoring] This module provides a CircuitBreaker struct that helps protect the system from cascading failures when interacting with external services or performing operations prone to repeated errors.
Structs§
- Circuit
Breaker - A circuit breaker implementation to prevent cascading failures.
- Circuit
Breaker Config - Configuration for the CircuitBreaker.
- Circuit
Metrics - Metrics collected by the circuit breaker
- Circuit
Transition Event - Represents an event of state transition
- Debug
Ignore - A wrapper for types that don’t implement Debug
Enums§
- Circuit
Breaker State - Represents the state of the circuit breaker.
- Circuit
Operation Type - Type of operation outcome.
Traits§
- Circuit
Breaker Observer - Observer trait for circuit breaker events.
Type Aliases§
- Error
Predicate - Type alias for error predicate function