pub enum Gate {
Proceed,
Probe,
FastFail {
retry_in_ms: u64,
},
}Expand description
What the gate decides before an attempt is dispatched.
Variants§
Proceed
Closed (or this attempt is not guarded): dispatch the effect.
Probe
Cooldown elapsed and no live probe: dispatch — this attempt IS the probe, and the state has been marked so.
FastFail
Open (or a probe is already in flight): fail fast without dialling. Carries the milliseconds until the next probe becomes possible.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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