pub struct RestartConfig {
pub max_restarts: u32,
pub within: Duration,
}Expand description
Configuration for restart intensity limiting (circuit breaker).
Fields§
§max_restarts: u32Maximum number of restarts allowed within the time window.
within: DurationTime window in which max_restarts is measured.
Trait Implementations§
Source§impl Clone for RestartConfig
impl Clone for RestartConfig
Source§fn clone(&self) -> RestartConfig
fn clone(&self) -> RestartConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestartConfig
impl Debug for RestartConfig
Auto Trait Implementations§
impl Freeze for RestartConfig
impl RefUnwindSafe for RestartConfig
impl Send for RestartConfig
impl Sync for RestartConfig
impl Unpin for RestartConfig
impl UnsafeUnpin for RestartConfig
impl UnwindSafe for RestartConfig
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