[][src]Struct adventure::retry::Retrying

pub struct Retrying<R, T, B = ExponentialBackoff, F = ()> { /* fields omitted */ }

Request for retry combinator.

Trait Implementations

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]

type Response = Retrial<Self, C>

The type of corresponding responses of this request.

fn repeat(self) -> Repeat<Self> where
    Self: Clone
[src]

impl<R, T, B, F> PagedRequest for Retrying<R, T, B, F> where
    R: PagedRequest
[src]

fn paginate<C>(self, client: C) -> Paginator<C, Self> where
    Self: Request<C> + Sized
[src]

impl<R, T, B, F> BaseRequest for Retrying<R, T, B, F> where
    R: BaseRequest
[src]

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, 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]

type Response = Retrial<Self, C>

The type of corresponding responses of this request.

fn oneshot(self) -> Oneshot<Self> where
    Self: Sized
[src]

fn retry_if<F>(self, pred: F) -> RetryingTokio<Self, ExponentialBackoff, F> where
    Self: Sized,
    F: RetrialPredicate<Self>, 
[src]

Wrap this request to retry if the given predicate returns true. Read more

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]

Wrap this request to retry with customizable options, including the timer implementation.

impl<R, T, B, F> Unpin for Retrying<R, T, B, F> where
    R: Unpin,
    F: Unpin,
    B: Unpin
[src]

impl<R: Clone, T: Clone, B: Clone, F: Clone> Clone for Retrying<R, T, B, F>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<R, T, B, F> Send for Retrying<R, T, B, F> where
    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

impl<R, T, B, F> UnwindSafe for Retrying<R, T, B, F> where
    B: UnwindSafe,
    F: UnwindSafe,
    R: UnwindSafe,
    T: UnwindSafe

impl<R, T, B, F> RefUnwindSafe for Retrying<R, T, B, F> where
    B: RefUnwindSafe,
    F: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]