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§
impl StructuralPartialEq for NoContent
Auto Trait Implementations§
impl Freeze for NoContent
impl RefUnwindSafe for NoContent
impl Send for NoContent
impl Sync for NoContent
impl Unpin for NoContent
impl UnwindSafe for NoContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more