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.

Example

use rocket::response::status;

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

Trait Implementations

impl<R: Debug> Debug for NotFound<R>
[src]

Formats the value using the given formatter. Read more

impl<R: Clone> Clone for NotFound<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: PartialEq> PartialEq for NotFound<R>
[src]

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>
[src]

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