pub struct BreakerConfig {
pub open_threshold: u32,
pub cooldown: Duration,
pub cooldown_max: Duration,
}Expand description
Breaker tuning. Every list is constructed with BreakerConfig::default,
so these defaults are the operative values and the tuning is not currently
exposed to operators.
Fields§
§open_threshold: u32Consecutive failover-class failures that open the breaker.
cooldown: DurationInitial cooldown after the breaker opens.
cooldown_max: DurationCooldown cap (cooldown doubles each consecutive open up to this).
Trait Implementations§
Source§impl Clone for BreakerConfig
impl Clone for BreakerConfig
Source§fn clone(&self) -> BreakerConfig
fn clone(&self) -> BreakerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BreakerConfig
Source§impl Debug for BreakerConfig
impl Debug for BreakerConfig
Source§impl Default for BreakerConfig
impl Default for BreakerConfig
Source§fn default() -> BreakerConfig
fn default() -> BreakerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BreakerConfig
impl RefUnwindSafe for BreakerConfig
impl Send for BreakerConfig
impl Sync for BreakerConfig
impl Unpin for BreakerConfig
impl UnsafeUnpin for BreakerConfig
impl UnwindSafe for BreakerConfig
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