Trait tsukuyomi::Responder

source ·
pub trait Responder {
    type Response: IntoResponse;
    type Error: Into<Error>;
    type Respond: TryFuture<Ok = Self::Response, Error = Self::Error>;

    fn respond(self) -> Self::Respond;
}
Expand description

A trait that abstracts replies to clients.

Required Associated Types

The type of response

The error type which will be returned from respond_to.

The type of Future which will be returned from respond_to.

Required Methods

Converts itself into a TryFuture that will be resolved as a Response.

Implementors

a branket impl of Responder for IntoResponses.