pub struct MessageBody { /* private fields */ }Expand description
Future that buffers a complete HTTP response body.
Implementations§
Source§impl MessageBody
impl MessageBody
Sourcepub fn new(res: &ClientResponse) -> MessageBody ⓘ
pub fn new(res: &ClientResponse) -> MessageBody ⓘ
Creates a body future for res.
This takes the response payload. Creating another body future from the same response produces an empty body.
Trait Implementations§
Source§impl Debug for MessageBody
impl Debug for MessageBody
Auto Trait Implementations§
impl !Freeze for MessageBody
impl !RefUnwindSafe for MessageBody
impl !Send for MessageBody
impl !Sync for MessageBody
impl !UnwindSafe for MessageBody
impl Unpin for MessageBody
impl UnsafeUnpin for MessageBody
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more