Struct rocket::response::status::NotFound[][src]

pub struct NotFound<R>(pub R);

Sets the status of the response to 404 (Not Found).

The remainder of the response is delegated to the wrapped Responder.


use rocket::response::status;

let response = status::NotFound("Sorry, I couldn't find it!");

Trait Implementations

impl<R: Debug> Debug for NotFound<R>

Formats the value using the given formatter. Read more

impl<R: Clone> Clone for NotFound<R>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: PartialEq> PartialEq for NotFound<R>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'r, R: Responder<'r>> Responder<'r> for NotFound<R>

Sets the status code of the response to 404 Not Found.

Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more

Auto Trait Implementations

impl<R> Send for NotFound<R> where
    R: Send

impl<R> Sync for NotFound<R> where
    R: Sync