Trait tsukuyomi::output::Responder [−][src]
pub trait Responder { fn respond_to(self, cx: &Context) -> Result<Output, Error>; }
A trait representing the conversion to an HTTP response.
Required Methods
fn respond_to(self, cx: &Context) -> Result<Output, Error>
Converts self
to an HTTP response.
Implementations on Foreign Types
impl<T> Responder for Option<T> where
T: Responder,
[src]
impl<T> Responder for Option<T> where
T: Responder,
impl<T> Responder for Result<T, Error> where
T: Responder,
[src]
impl<T> Responder for Result<T, Error> where
T: Responder,
impl<T> Responder for Response<T> where
T: Into<ResponseBody>,
[src]
impl<T> Responder for Response<T> where
T: Into<ResponseBody>,
impl Responder for &'static str
[src]
impl Responder for &'static str
impl Responder for String
[src]
impl Responder for String