pub struct ServiceResponse { /* private fields */ }Expand description
HTTP response passed through client middleware.
Implementations§
Source§impl ServiceResponse
impl ServiceResponse
Sourcepub fn head(&mut self) -> &mut ResponseHead
pub fn head(&mut self) -> &mut ResponseHead
Returns mutable access to the response head.
Sourcepub fn take_payload(&mut self) -> Payload
pub fn take_payload(&mut self) -> Payload
Takes the response payload, leaving an empty payload behind.
Trait Implementations§
Source§impl Debug for ServiceResponse
impl Debug for ServiceResponse
Source§impl From<ServiceResponse> for ClientResponse
impl From<ServiceResponse> for ClientResponse
Source§fn from(res: ServiceResponse) -> Self
fn from(res: ServiceResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ServiceResponse
impl !RefUnwindSafe for ServiceResponse
impl !Send for ServiceResponse
impl !Sync for ServiceResponse
impl !UnwindSafe for ServiceResponse
impl Unpin for ServiceResponse
impl UnsafeUnpin for ServiceResponse
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