Struct backoff_tower::BackoffLayer
source · 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§
Auto Trait Implementations§
impl<P, B> RefUnwindSafe for BackoffLayer<P, B>where B: RefUnwindSafe, P: RefUnwindSafe,
impl<P, B> Send for BackoffLayer<P, B>where B: Send, P: Send,
impl<P, B> Sync for BackoffLayer<P, B>where B: Sync, P: Sync,
impl<P, B> Unpin for BackoffLayer<P, B>where B: Unpin, P: Unpin,
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