[−][src]Struct adventure::oneshot::Oneshot
An OneshotRequest
adaptor for types that implements Request
.
Trait Implementations
impl<R, C> OneshotRequest<C> for Oneshot<R> where
R: Request<C>,
[src]
R: Request<C>,
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> BaseRequest for Oneshot<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> RetriableRequest for Oneshot<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> From<R> for Oneshot<R>
[src]
impl<R: Clone> Clone for Oneshot<R>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,