Struct backoff_tower::BackoffService
source · pub struct BackoffService<P, B, Req> { /* private fields */ }Expand description
A service for the retrying of a call with back offs.
This service adds the backoff wrapper to the request so that the inner service can choose an appropriate backoff period before reattempting its service call
Trait Implementations§
source§impl<P: Clone, B: Clone, Req: Clone> Clone for BackoffService<P, B, Req>
impl<P: Clone, B: Clone, Req: Clone> Clone for BackoffService<P, B, Req>
source§fn clone(&self) -> BackoffService<P, B, Req>
fn clone(&self) -> BackoffService<P, B, Req>
Returns a copy 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<P, B, S, Req> Service<Req> for BackoffService<P, B, S>where
P: Policy<Req, S::Response, S::Error> + Clone,
B: BackoffStrategy,
S: Service<Req> + Clone,
impl<P, B, S, Req> Service<Req> for BackoffService<P, B, S>where P: Policy<Req, S::Response, S::Error> + Clone, B: BackoffStrategy, S: Service<Req> + Clone,
§type Future = ResponseFuture<BackoffPolicy<P>, BackoffInnerService<S, B>, Backoff<Req>>
type Future = ResponseFuture<BackoffPolicy<P>, BackoffInnerService<S, B>, Backoff<Req>>
The future response value.
Auto Trait Implementations§
impl<P, B, Req> RefUnwindSafe for BackoffService<P, B, Req>where B: RefUnwindSafe, P: RefUnwindSafe, Req: RefUnwindSafe,
impl<P, B, Req> Send for BackoffService<P, B, Req>where B: Send, P: Send, Req: Send,
impl<P, B, Req> Sync for BackoffService<P, B, Req>where B: Sync, P: Sync, Req: Sync,
impl<P, B, Req> Unpin for BackoffService<P, B, Req>where P: Unpin,
impl<P, B, Req> UnwindSafe for BackoffService<P, B, Req>where B: UnwindSafe, P: UnwindSafe, Req: 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