[−][src]Struct adventure::retry::Retrying
Request for retry
combinator.
Trait Implementations
impl<R, T, B, F> BaseRequest for Retrying<R, T, B, F> where
R: BaseRequest,
[src]
R: BaseRequest,
type Ok = R::Ok
The type of successful values from the corresponding response.
type Error = RetryError<R::Error>
The type of failures from the corresponding response.
impl<R: Clone, T: Clone, B: Clone, F: Clone> Clone for Retrying<R, T, B, F>
[src]
impl<R, T, B, F, C> OneshotRequest<C> for Retrying<R, T, B, F> where
Self: RetryMethod<C, Response = R::Response> + Unpin,
R: Request<C>,
R::Response: Unpin,
C: Clone,
[src]
Self: RetryMethod<C, Response = R::Response> + Unpin,
R: Request<C>,
R::Response: Unpin,
C: Clone,
type Response = Retrial<Self, C>
The type of corresponding responses of this request.
fn send_once(self, client: C) -> Self::Response
[src]
fn repeat(self) -> Repeat<Self> where
Self: Clone,
[src]
Self: Clone,
impl<R, T, B, F> PagedRequest for Retrying<R, T, B, F> where
R: PagedRequest,
[src]
R: PagedRequest,
fn advance(&mut self, response: &Self::Ok) -> bool
[src]
fn paginate<C>(self, client: C) -> Paginator<C, Self> where
Self: Request<C> + Sized,
[src]
Self: Request<C> + Sized,
impl<R, T, B, F, C> Request<C> for Retrying<R, T, B, F> where
Self: RetryMethod<C, Response = R::Response> + Clone + Unpin,
R: Request<C>,
R::Response: Unpin,
C: Clone,
[src]
Self: RetryMethod<C, Response = R::Response> + Clone + Unpin,
R: Request<C>,
R::Response: Unpin,
C: Clone,
type Response = Retrial<Self, C>
The type of corresponding responses of this request.
fn send(self: Pin<&mut Self>, client: C) -> Self::Response
[src]
fn oneshot(self) -> Oneshot<Self> where
Self: Sized,
[src]
Self: Sized,
fn retry_if<F>(self, pred: F) -> RetryingTokio<Self, ExponentialBackoff, F> where
Self: Sized,
F: RetrialPredicate<Self>,
[src]
Self: Sized,
F: RetrialPredicate<Self>,
fn retry_with_config<T, B, F>(
self,
timer: T,
pred: F,
backoff: B
) -> Retrying<Self, T, B, F> where
Self: Sized,
T: Timer + Unpin,
B: Backoff,
F: RetrialPredicate<Self>,
[src]
self,
timer: T,
pred: F,
backoff: B
) -> Retrying<Self, T, B, F> where
Self: Sized,
T: Timer + Unpin,
B: Backoff,
F: RetrialPredicate<Self>,
impl<R, T, B, F> Unpin for Retrying<R, T, B, F> where
R: Unpin,
F: Unpin,
B: Unpin,
[src]
R: Unpin,
F: Unpin,
B: Unpin,
Auto Trait Implementations
impl<R, T, B, F> RefUnwindSafe for Retrying<R, T, B, F> where
B: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T, B, F> Send for Retrying<R, T, B, F> where
B: Send,
F: Send,
R: Send,
T: Send,
B: Send,
F: Send,
R: Send,
T: Send,
impl<R, T, B, F> Sync for Retrying<R, T, B, F> where
B: Sync,
F: Sync,
R: Sync,
T: Sync,
B: Sync,
F: Sync,
R: Sync,
T: Sync,
impl<R, T, B, F> UnwindSafe for Retrying<R, T, B, F> where
B: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,