[][src]Trait vial::Responder

pub trait Responder {
    pub fn to_response(self) -> Response;
}

The Responder trait converts your custom types or a few basic Rust types into a Response that gets hand delivered to the HTTP client in a timley fashion, barring any weather delays.

Required methods

pub fn to_response(self) -> Response[src]

Consume this object and return a Response representing it.

Loading content...

Implementations on Foreign Types

impl<'_> Responder for &'_ str[src]

impl Responder for String[src]

impl Responder for usize[src]

impl<T: Responder, E: Error> Responder for Result<T, E>[src]

impl<T: Responder> Responder for Option<T>[src]

impl Responder for ()[src]

Loading content...

Implementors

impl Responder for Error[src]

impl Responder for Response[src]

Loading content...