Struct rocket::response::status::NoContent [−][src]
pub struct NoContent;
Sets the status of the response to 204 (No Content).
Example
use rocket::response::status; let response = status::NoContent;
Trait Implementations
impl Debug for NoContent
[src]
impl Debug for NoContent
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 Clone for NoContent
[src]
impl Clone for NoContent
fn clone(&self) -> NoContent
[src]
fn clone(&self) -> NoContent
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 PartialEq for NoContent
[src]
impl PartialEq for NoContent
fn eq(&self, other: &NoContent) -> bool
[src]
fn eq(&self, other: &NoContent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'r> Responder<'r> for NoContent
[src]
impl<'r> Responder<'r> for NoContent
Sets the status code of the response to 204 No Content. The body of the response will be empty.