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
sourcetype Response: IntoResponse
type Response: IntoResponse
The type of response