Struct rocket::response::status::NoContent [−][src]
pub struct NoContent;
Expand description
Sets the status of the response to 204 (No Content).
The response body will be empty.
Example
A 204 No Content response:
use rocket::response::status;
let response = status::NoContent;
Trait Implementations
Sets the status code of the response to 204 No Content.
Auto Trait Implementations
impl RefUnwindSafe for NoContent
impl UnwindSafe for NoContent
Blanket Implementations
Mutably borrows from an owned value. Read more