[−][src]Struct adventure::repeat::Repeat
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]
R: OneshotRequest<C> + Clone,
type Response = R::Response
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> PagedRequest for Repeat<R> 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> BaseRequest for Repeat<R> where
R: BaseRequest,
[src]
R: BaseRequest,
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]
R: OneshotRequest<C> + Clone,
type Response = R::Response
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>,
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]
self,
timer: T,
pred: F,
backoff: B
) -> Retrying<Self, T, B, F> where
Self: Sized,
T: Timer + Unpin,
B: Backoff,
F: RetrialPredicate<Self>,
Wrap this request to retry with customizable options, including the timer implementation.
impl<R> RetriableRequest for Repeat<R> where
R: RetriableRequest,
[src]
R: RetriableRequest,
fn should_retry(&self, error: &Self::Error, next_interval: Duration) -> bool
[src]
fn retry(self) -> RetryingTokio<Self> where
Self: Sized,
[src]
Self: Sized,
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]
Self: BaseRequest + Sized,
B: Backoff,
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(&self) -> 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]
R: Clone,
Auto Trait Implementations
impl<R> Sync for Repeat<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Repeat<R> where
R: Unpin,
R: Unpin,
impl<R> Send for Repeat<R> where
R: Send,
R: Send,
impl<R> UnwindSafe for Repeat<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Repeat<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,