#[non_exhaustive]pub struct ResponseHead { /* private fields */ }
Expand description
All the information that is transmitted as part of an HTTP Response
ahead of the body.
It includes the status code, the HTTP version, and the headers.
Trait Implementations§
source§impl Debug for ResponseHead
impl Debug for ResponseHead
source§impl From<Parts> for ResponseHead
impl From<Parts> for ResponseHead
source§impl From<ResponseHead> for Parts
impl From<ResponseHead> for Parts
source§fn from(head: ResponseHead) -> Self
fn from(head: ResponseHead) -> Self
Converts to this type from the input type.
source§impl IntoResponse for ResponseHead
impl IntoResponse for ResponseHead
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert
self
into an HTTP response.Auto Trait Implementations§
impl Freeze for ResponseHead
impl RefUnwindSafe for ResponseHead
impl Send for ResponseHead
impl Sync for ResponseHead
impl Unpin for ResponseHead
impl UnwindSafe for ResponseHead
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