pub struct BodyReader { /* private fields */ }Expand description
A reader for the body of an HTTP request or response.
This reader implements the http_body::Body trait and is used for
web servers to access the data being sent by the BodyWriter.
Trait Implementations§
Source§impl AsyncRead for BodyReader
impl AsyncRead for BodyReader
Source§impl Body for BodyReader
impl Body for BodyReader
Source§type Error = BodyIoError
type Error = BodyIoError
The error type this
Body might generate.Source§fn poll_frame(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>>
fn poll_frame( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>>
Attempt to pull out the next data buffer of this stream.
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true when the end of stream has been reached. Read moreAuto Trait Implementations§
impl Freeze for BodyReader
impl RefUnwindSafe for BodyReader
impl Send for BodyReader
impl Sync for BodyReader
impl Unpin for BodyReader
impl UnwindSafe for BodyReader
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