Struct rocket::response::Failure [−][src]
pub struct Failure(pub Status);
A failing response; simply forwards to the catcher for the given
Status
.
Trait Implementations
impl Debug for Failure
[src]
impl Debug for Failure
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Responder<'static> for Failure
[src]
impl Responder<'static> for Failure
fn respond_to(self, _: &Request) -> Result<Response<'static>, Status>
[src]
fn respond_to(self, _: &Request) -> Result<Response<'static>, Status>
Returns Ok
if a Response
could be generated successfully. Otherwise, returns an Err
with a failing Status
. Read more
impl From<Status> for Failure
[src]
impl From<Status> for Failure