[−][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
impl<R> Send for Oneshot<R> where
R: Send,
R: Send,
impl<R> Unpin for Oneshot<R> where
R: Unpin,
R: Unpin,
impl<R> Sync for Oneshot<R> where
R: Sync,
R: Sync,
impl<R> UnwindSafe for Oneshot<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Oneshot<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,