pub enum BreakerPhase<Route> {
Closed(ClosedPhase<Route>),
Open {
generation: TimerGeneration,
},
Probing {
generation: TimerGeneration,
phase: ProbePhase<Route>,
},
Exhausted,
}Expand description
Complete circuit-breaker phase sum.
Variants§
Closed(ClosedPhase<Route>)
Ordinary admission with a consecutive-failure count.
Open
Admission is denied until matching timer evidence arrives.
Fields
§
generation: TimerGenerationProbing
One recovery probe is available or in progress.
Exhausted
No fresh attempt or timer generation remains representable.
Auto Trait Implementations§
impl<Route> Freeze for BreakerPhase<Route>where
Route: Freeze,
impl<Route> RefUnwindSafe for BreakerPhase<Route>where
Route: RefUnwindSafe,
impl<Route> Send for BreakerPhase<Route>where
Route: Send,
impl<Route> Sync for BreakerPhase<Route>where
Route: Sync,
impl<Route> Unpin for BreakerPhase<Route>where
Route: Unpin,
impl<Route> UnsafeUnpin for BreakerPhase<Route>where
Route: UnsafeUnpin,
impl<Route> UnwindSafe for BreakerPhase<Route>where
Route: UnwindSafe,
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