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]

Formats the value using the given formatter.

impl Clone for NoContent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NoContent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'r> Responder<'r> for NoContent
[src]

Sets the status code of the response to 204 No Content. The body of the response will be empty.

Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more