pub enum Body<'b, R> {
Close(PartiallyRead<'b, R>),
ContentLen(ContentLenRead<PartiallyRead<'b, R>>),
Chunked(ChunkedRead<'b, PartiallyRead<'b, R>>),
}Variants§
Close(PartiallyRead<'b, R>)
ContentLen(ContentLenRead<PartiallyRead<'b, R>>)
Chunked(ChunkedRead<'b, PartiallyRead<'b, R>>)
Implementations§
Trait Implementations§
source§impl<'b, R> Read for Body<'b, R>where
R: Read,
impl<'b, R> Read for Body<'b, R>where
R: Read,
source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreAuto Trait Implementations§
impl<'b, R> Freeze for Body<'b, R>where
R: Freeze,
impl<'b, R> RefUnwindSafe for Body<'b, R>where
R: RefUnwindSafe,
impl<'b, R> Send for Body<'b, R>where
R: Send,
impl<'b, R> Sync for Body<'b, R>where
R: Sync,
impl<'b, R> Unpin for Body<'b, R>where
R: Unpin,
impl<'b, R> !UnwindSafe for Body<'b, R>
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