pub struct Response { /* private fields */ }
Implementations§
Source§impl Response
impl Response
pub async fn bytes(self) -> Result<Bytes, Error>
pub fn bytes_stream(self) -> impl Stream<Item = Result<Bytes, Error>>
pub fn status(&self) -> StatusCode
pub fn url(&self) -> &Url
pub fn method(&self) -> &Method
pub fn error_for_status_ref(&self) -> Result<&Self, Error>
pub fn error_for_status(self) -> Result<Self, Error>
pub fn headers(&self) -> &HeaderMap
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin 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