pub enum CircuitBreakerState {
Closed,
Open,
HalfOpen,
}
Expand description
Represents the state of the circuit breaker.
Variants§
Closed
The circuit is closed, operations are allowed.
Open
The circuit is open, operations are rejected immediately.
HalfOpen
The circuit is partially open, allowing a limited number of test operations.
Trait Implementations§
Source§impl Clone for CircuitBreakerState
impl Clone for CircuitBreakerState
Source§fn clone(&self) -> CircuitBreakerState
fn clone(&self) -> CircuitBreakerState
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 CircuitBreakerState
impl Debug for CircuitBreakerState
Source§impl Default for CircuitBreakerState
impl Default for CircuitBreakerState
Source§fn default() -> CircuitBreakerState
fn default() -> CircuitBreakerState
Returns the “default value” for a type. Read more
Source§impl Display for CircuitBreakerState
impl Display for CircuitBreakerState
Source§impl Hash for CircuitBreakerState
impl Hash for CircuitBreakerState
Source§impl PartialEq for CircuitBreakerState
impl PartialEq for CircuitBreakerState
impl Copy for CircuitBreakerState
impl Eq for CircuitBreakerState
impl StructuralPartialEq for CircuitBreakerState
Auto Trait Implementations§
impl Freeze for CircuitBreakerState
impl RefUnwindSafe for CircuitBreakerState
impl Send for CircuitBreakerState
impl Sync for CircuitBreakerState
impl Unpin for CircuitBreakerState
impl UnwindSafe for CircuitBreakerState
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