[][src]Trait trout::hyper::RoutingFailureExtHyper

pub trait RoutingFailureExtHyper {
    fn to_simple_response<B: From<&'static str>>(&self) -> Response<B>;
}

Extension trait for RoutingFailure to provide to_simple_response

Required methods

fn to_simple_response<B: From<&'static str>>(&self) -> Response<B>

Convert a RoutingFailure to a simple hyper Response

Loading content...

Implementors

impl RoutingFailureExtHyper for RoutingFailure[src]

Loading content...