[][src]Struct adventure::oneshot::Oneshot

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

An OneshotRequest adaptor for types that implements Request.

Trait Implementations

impl<R, C> OneshotRequest<C> for Oneshot<R> where
    R: Request<C>, 
[src]

type Response = R::Response

The type of corresponding responses of this request.

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

impl<R> BaseRequest for Oneshot<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> RetriableRequest for Oneshot<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 Oneshot<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 Oneshot<R>[src]

Auto Trait Implementations

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

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

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

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

impl<R> RefUnwindSafe for Oneshot<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]