pub struct RetryService<P, S> { /* private fields */ }
Expand description
Retry service
Retry service allows to retry service call
Implementations§
Source§impl<P, S> RetryService<P, S>
impl<P, S> RetryService<P, S>
Trait Implementations§
Source§impl<P: Clone, S: Clone> Clone for RetryService<P, S>
impl<P: Clone, S: Clone> Clone for RetryService<P, S>
Source§fn clone(&self) -> RetryService<P, S>
fn clone(&self) -> RetryService<P, S>
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<P, S, R> Service<R> for RetryService<P, S>
impl<P, S, R> Service<R> for RetryService<P, S>
Source§type Error = <S as Service<R>>::Error
type Error = <S as Service<R>>::Error
Errors produced by the service when polling readiness or executing call.
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls service from the current task. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
Source§async fn call(
&self,
request: R,
ctx: ServiceCtx<'_, Self>,
) -> Result<S::Response, S::Error>
async fn call( &self, request: R, ctx: ServiceCtx<'_, Self>, ) -> Result<S::Response, S::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<P, S> Freeze for RetryService<P, S>
impl<P, S> RefUnwindSafe for RetryService<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for RetryService<P, S>
impl<P, S> Sync for RetryService<P, S>
impl<P, S> Unpin for RetryService<P, S>
impl<P, S> UnwindSafe for RetryService<P, S>where
P: UnwindSafe,
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
Source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service