pub struct ReceiveBody<'socket, Socket: AsyncRead + ?Sized> { /* private fields */ }Expand description
An in-progress HTTP response which is currently receiving a response body.
After the headers are received, an instance of this type is obtained. It implements
AsyncRead, which allows the application to read the response body.
When the response body is finished, finish should be called to tidy up.
The 'socket lifetime parameter is the lifetime of the transport socket. The Socket type
parameter is the type of the transport-layer socket over which the HTTP response is received.
Implementations§
Trait Implementations§
Source§impl<'socket, Socket: AsyncRead + ?Sized> AsyncRead for Receive<'socket, Socket>
impl<'socket, Socket: AsyncRead + ?Sized> AsyncRead for Receive<'socket, Socket>
Auto Trait Implementations§
impl<'socket, Socket> Freeze for Receive<'socket, Socket>where
Socket: ?Sized,
impl<'socket, Socket> RefUnwindSafe for Receive<'socket, Socket>where
Socket: RefUnwindSafe + ?Sized,
impl<'socket, Socket> Send for Receive<'socket, Socket>
impl<'socket, Socket> Sync for Receive<'socket, Socket>
impl<'socket, Socket> Unpin for Receive<'socket, Socket>where
Socket: ?Sized,
impl<'socket, Socket> !UnwindSafe for Receive<'socket, Socket>
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