Struct rocket::response::status::NoContent[][src]

pub struct NoContent;

Sets the status of the response to 204 (No Content).


use rocket::response::status;

let response = status::NoContent;

Trait Implementations

impl Debug for NoContent

Formats the value using the given formatter. Read more

impl Clone for NoContent

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NoContent

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

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

Auto Trait Implementations

impl Send for NoContent

impl Sync for NoContent