pub struct BreakerConfig {
pub threshold: u32,
pub cooldown: Duration,
}Expand description
Circuit-breaker configuration.
Fields§
§threshold: u32Consecutive endpoint failures required to open.
cooldown: DurationDelay before one half-open trial is admitted.
Trait Implementations§
Source§impl Clone for BreakerConfig
impl Clone for BreakerConfig
impl Copy for BreakerConfig
Source§impl Debug for BreakerConfig
impl Debug for BreakerConfig
Auto Trait Implementations§
impl Forget for BreakerConfig
impl Freeze for BreakerConfig
impl Move 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