pub enum BreakerOutcome {
Admitted {
attempt: BreakerAttempt,
},
ProbeAdmitted {
attempt: BreakerAttempt,
},
Rejected(BreakerRejection),
Succeeded {
attempt: BreakerAttempt,
},
FailureRecorded {
attempt: BreakerAttempt,
consecutive_failures: u32,
},
Opened {
attempt: BreakerAttempt,
generation: TimerGeneration,
},
}Expand description
Facts emitted to the recipient supplied with an admission request.
Variants§
Admitted
The caller may begin this uniquely identified operation while the circuit is closed.
Fields
§
attempt: BreakerAttemptProbeAdmitted
The caller’s request is the single half-open recovery probe: a later
BreakerOutcome::Succeeded closes the circuit, while a failed
completion reopens it with a fresh timer generation.
Fields
§
attempt: BreakerAttemptRejected(BreakerRejection)
A request was not admitted.
Succeeded
The admitted operation succeeded and closed the circuit.
Fields
§
attempt: BreakerAttemptFailureRecorded
Failure was recorded while the circuit remained closed.
Opened
Failure reached the threshold and opened the circuit.
Trait Implementations§
Source§impl Clone for BreakerOutcome
impl Clone for BreakerOutcome
Source§fn clone(&self) -> BreakerOutcome
fn clone(&self) -> BreakerOutcome
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 BreakerOutcome
impl Debug for BreakerOutcome
Source§impl PartialEq for BreakerOutcome
impl PartialEq for BreakerOutcome
impl Copy for BreakerOutcome
impl Eq for BreakerOutcome
impl StructuralPartialEq for BreakerOutcome
Auto Trait Implementations§
impl Freeze for BreakerOutcome
impl RefUnwindSafe for BreakerOutcome
impl Send for BreakerOutcome
impl Sync for BreakerOutcome
impl Unpin for BreakerOutcome
impl UnsafeUnpin for BreakerOutcome
impl UnwindSafe for BreakerOutcome
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