[][src]Struct adventure::repeat::Repeat

pub struct Repeat<R> { /* fields omitted */ }

An Request adaptor for types that implements OneshotRequest, by cloning itself.

Trait Implementations

impl<R, C> OneshotRequest<C> for Repeat<R> where
    R: OneshotRequest<C> + Clone
[src]

type Response = R::Response

The type of corresponding responses of this request.

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

impl<R> PagedRequest for Repeat<R> where
    R: PagedRequest
[src]

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

impl<R> BaseRequest for Repeat<R> where
    R: BaseRequest
[src]

type Ok = R::Ok

The type of successful values from the corresponding response.

type Error = R::Error

The type of failures from the corresponding response.

impl<R, C> Request<C> for Repeat<R> where
    R: OneshotRequest<C> + Clone
[src]

type Response = R::Response

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> RetriableRequest for Repeat<R> where
    R: RetriableRequest
[src]

fn retry(self) -> RetryingTokio<Self> where
    Self: Sized
[src]

Wrap this request to retry itself on failure, with a default ExponentialBackoff strategy. Read more

fn retry_with_backoff<B>(self, backoff: B) -> RetryingTokio<Self, B> where
    Self: BaseRequest + Sized,
    B: Backoff
[src]

Wrap this request to retry itself on failure, with a given backoff strategy. Read more

impl<R: Clone> Clone for Repeat<R>[src]

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

Performs copy-assignment from source. Read more

impl<R> From<R> for Repeat<R> where
    R: Clone
[src]

Auto Trait Implementations

impl<R> Sync for Repeat<R> where
    R: Sync

impl<R> Unpin for Repeat<R> where
    R: Unpin

impl<R> Send for Repeat<R> where
    R: Send

impl<R> UnwindSafe for Repeat<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Repeat<R> where
    R: RefUnwindSafe

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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]