pub struct Response {
pub status: u16,
pub status_line: String,
pub body: Vec<u8>,
}Expand description
As much of a response as was read.
Fields§
§status: u16The status code from the status line.
status_line: StringThe whole status line, for logging a failure usefully.
body: Vec<u8>The body, unchunked if it was chunked. Empty if there was none.
Implementations§
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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