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: Debug> Debug for NotFound<R>
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<R: Clone> Clone for NotFound<R>
[src]
impl<R: Clone> Clone for NotFound<R>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<R: PartialEq> PartialEq for NotFound<R>
[src]
impl<R: PartialEq> PartialEq for NotFound<R>
fn eq(&self, other: &NotFound<R>) -> bool
[src]
fn eq(&self, other: &NotFound<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NotFound<R>) -> bool
[src]
fn ne(&self, other: &NotFound<R>) -> bool
This method tests for !=
.
impl<'r, R: Responder<'r>> Responder<'r> for NotFound<R>
[src]
impl<'r, R: Responder<'r>> Responder<'r> for NotFound<R>
Sets the status code of the response to 404 Not Found.