pub enum Admission {
Pass,
Probe(Probe),
Held(Duration),
}Expand description
Whether a delivery may be sent, as a BreakerStore answers.
Variants§
Pass
The breaker is closed: send it.
Probe(Probe)
The breaker is half-open, and this delivery is its probe: send it, and give the probe back with its outcome.
Held(Duration)
The breaker is open, or half-open with a probe under way: hold the delivery, for about this long.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Admission
impl !UnwindSafe for Admission
impl Freeze for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
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