pub struct ResponseHead {
pub headers: Headers,
pub raw_status: RawStatus,
pub version: HttpVersion,
}
Expand description
Describes a response.
Fields§
§headers: Headers
The headers of the reponse
raw_status: RawStatus
The raw status line of the response
version: HttpVersion
The HTTP/2 version which generated the response
Trait Implementations§
Source§impl Clone for ResponseHead
impl Clone for ResponseHead
Source§fn clone(&self) -> ResponseHead
fn clone(&self) -> ResponseHead
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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