pub trait Responder {
type Body: Into<ResponseBody>;
type Error: Into<Error>;
fn respond_to(
self,
input: &mut Input<'_>
) -> Result<Response<Self::Body>, Self::Error>;
}
Expand description
A trait representing the conversion to an HTTP response.
Required Associated Types
sourcetype Body: Into<ResponseBody>
type Body: Into<ResponseBody>
The type of message body in the generated HTTP response.