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]
impl<R: Clone> Clone for NotFound<R>[src]
fn clone(&self) -> NotFound<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<R: PartialEq> PartialEq for NotFound<R>[src]
fn eq(&self, __arg_0: &NotFound<R>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NotFound<R>) -> bool
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.