pub enum ClosedPhase<Route> {
Idle {
consecutive_failures: u32,
},
Awaiting {
consecutive_failures: u32,
attempt: BreakerAttempt,
reply_to: Route,
},
}Expand description
Closed-state subphase; only one operation may own the breaker at a time.
Variants§
Idle
The breaker may admit one operation.
Awaiting
One admitted operation owns its terminal report capability.
Auto Trait Implementations§
impl<Route> Freeze for ClosedPhase<Route>where
Route: Freeze,
impl<Route> RefUnwindSafe for ClosedPhase<Route>where
Route: RefUnwindSafe,
impl<Route> Send for ClosedPhase<Route>where
Route: Send,
impl<Route> Sync for ClosedPhase<Route>where
Route: Sync,
impl<Route> Unpin for ClosedPhase<Route>where
Route: Unpin,
impl<Route> UnsafeUnpin for ClosedPhase<Route>where
Route: UnsafeUnpin,
impl<Route> UnwindSafe for ClosedPhase<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