Struct rocket::response::status::Custom
[−]
[src]
pub struct Custom<R>(pub Status, pub R);
Creates a response with the given status code and underyling responder.
Example
use rocket::response::status; use rocket::http::Status; let response = status::Custom(Status::ImATeapot, "Hi!");
Trait Implementations
impl<R: Debug> Debug for Custom<R>
[src]
impl<R: Clone> Clone for Custom<R>
[src]
fn clone(&self) -> Custom<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 Custom<R>
[src]
fn eq(&self, __arg_0: &Custom<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Custom<R>) -> bool
This method tests for !=
.
impl<'r, R: Responder<'r>> Responder<'r> for Custom<R>
[src]
Sets the status code of the response and then delegates the remainder of the response to the wrapped responder.