[−][src]Struct kwait::ExponentialBackoffManager
Implementations
impl ExponentialBackoffManager
[src]
pub fn new_exponential_backoff_manager(
init_backoff: Duration,
max_backoff: Duration,
reset_duration: Duration,
backoff_factor: f64,
jitter: f64
) -> Box<dyn BackoffManager>
[src]
init_backoff: Duration,
max_backoff: Duration,
reset_duration: Duration,
backoff_factor: f64,
jitter: f64
) -> Box<dyn BackoffManager>
new_exponential_backoff_manager returns a manager for managing exponential backoff. Each backoff is jittered and backoff will not exceed the given max. If the backoff is not called within reset_duration, the backoff is reset. This backoff manager is used to reduce load during upstream unhealthiness.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExponentialBackoffManager
impl Send for ExponentialBackoffManager
impl Sync for ExponentialBackoffManager
impl Unpin for ExponentialBackoffManager
impl UnwindSafe for ExponentialBackoffManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,