pub struct MemoryBreakers { /* private fields */ }Expand description
Breakers in memory, each deliverer its own: the default.
Trait Implementations§
Source§impl BreakerStore for MemoryBreakers
impl BreakerStore for MemoryBreakers
Source§fn admit<'a>(
&'a self,
breaker: &'a CircuitBreaker,
key: &'a str,
) -> BreakerFuture<'a, Admission>
fn admit<'a>( &'a self, breaker: &'a CircuitBreaker, key: &'a str, ) -> BreakerFuture<'a, Admission>
Whether a delivery to
key may be sent, as CircuitBreaker says.
Letting one through as a probe takes the probe, so that no other
delivery is let through until it is given back.Source§fn record<'a>(
&'a self,
breaker: &'a CircuitBreaker,
key: &'a str,
failed: bool,
probe: Option<Probe>,
) -> BreakerFuture<'a, ()>
fn record<'a>( &'a self, breaker: &'a CircuitBreaker, key: &'a str, failed: bool, probe: Option<Probe>, ) -> BreakerFuture<'a, ()>
Record how a delivery to
key that was let through went: as a
probe, when probe is the one BreakerStore::admit took for it,
which closes the breaker or opens it again, and is given back after.Source§impl Default for MemoryBreakers
impl Default for MemoryBreakers
Source§fn default() -> MemoryBreakers
fn default() -> MemoryBreakers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryBreakers
impl RefUnwindSafe for MemoryBreakers
impl Send for MemoryBreakers
impl Sync for MemoryBreakers
impl Unpin for MemoryBreakers
impl UnsafeUnpin for MemoryBreakers
impl UnwindSafe for MemoryBreakers
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