pub struct BackoffLayer<P, B> { /* private fields */ }Expand description
A layer that creates a service that will attempt & reattempt to perform a service call based on a policy.
Each subsequent call will have a backoff period as defined by the passed strategy
Implementations§
Source§impl<P, B> BackoffLayer<P, B>
impl<P, B> BackoffLayer<P, B>
Trait Implementations§
Source§impl<S, P, B> Layer<S> for BackoffLayer<P, B>
impl<S, P, B> Layer<S> for BackoffLayer<P, B>
Auto Trait Implementations§
impl<P, B> Freeze for BackoffLayer<P, B>
impl<P, B> RefUnwindSafe for BackoffLayer<P, B>where
B: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, B> Send for BackoffLayer<P, B>
impl<P, B> Sync for BackoffLayer<P, B>
impl<P, B> Unpin for BackoffLayer<P, B>
impl<P, B> UnwindSafe for BackoffLayer<P, B>where
B: UnwindSafe,
P: UnwindSafe,
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