[][src]Trait adventure::OneshotRequest

pub trait OneshotRequest<C>: BaseRequest {
    type Response: Response<Ok = Self::Ok, Error = Self::Error>;
    fn send_once(self, client: C) -> Self::Response;

    fn repeat(self) -> Repeat<Self>
    where
        Self: Clone
, { ... } }

A request that can be sent just once.

Associated Types

type Response: Response<Ok = Self::Ok, Error = Self::Error>

The type of corresponding responses of this request.

Loading content...

Required methods

fn send_once(self, client: C) -> Self::Response

Send this request to the given client, by consuming itself.

Loading content...

Provided methods

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

Loading content...

Implementations on Foreign Types

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

type Response = R::Response

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

Loading content...

Implementors

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

type Response = R::Response

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

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

type Response = R::Response

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

impl<R, T, B, F, C> OneshotRequest<C> for Retrying<R, T, B, F> where
    Self: RetryMethod<C, Response = R::Response> + Unpin,
    R: Request<C>,
    R::Response: Unpin,
    C: Clone
[src]

type Response = Retrial<Self, C>

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

Loading content...