pub enum BreakerState {
Closed,
Open,
HalfOpen,
}Expand description
Current state of a single backend’s circuit breaker.
Variants§
Closed
Healthy — requests are forwarded and failures are counted.
Open
Unhealthy — requests are rejected until the recovery window expires.
HalfOpen
Probing — one request is let through to test backend health.
Trait Implementations§
Source§impl Clone for BreakerState
impl Clone for BreakerState
Source§fn clone(&self) -> BreakerState
fn clone(&self) -> BreakerState
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 BreakerState
impl Debug for BreakerState
Source§impl PartialEq for BreakerState
impl PartialEq for BreakerState
Source§fn eq(&self, other: &BreakerState) -> bool
fn eq(&self, other: &BreakerState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BreakerState
Auto Trait Implementations§
impl Freeze for BreakerState
impl RefUnwindSafe for BreakerState
impl Send for BreakerState
impl Sync for BreakerState
impl Unpin for BreakerState
impl UnsafeUnpin for BreakerState
impl UnwindSafe for BreakerState
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