pub struct BoxedBodyStream<S> { /* private fields */ }
Expand description
Type represent streaming body.
Response does not contain content-length
header and appropriate transfer encoding is used.
Implementations§
Trait Implementations§
Source§impl<S> Debug for BoxedBodyStream<S>
impl<S> Debug for BoxedBodyStream<S>
Source§impl<S> From<BoxedBodyStream<S>> for Body
impl<S> From<BoxedBodyStream<S>> for Body
Source§fn from(s: BoxedBodyStream<S>) -> Body
fn from(s: BoxedBodyStream<S>) -> Body
Converts to this type from the input type.
Source§impl<S> MessageBody for BoxedBodyStream<S>
impl<S> MessageBody for BoxedBodyStream<S>
Source§fn poll_next_chunk(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Bytes, Rc<dyn Error>>>>
fn poll_next_chunk( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Bytes, Rc<dyn Error>>>>
Attempts to pull out the next value of the underlying Stream
.
Empty values are skipped to prevent BodyStream
’s transmission being
ended on a zero-length chunk, but rather proceed until the underlying
Stream
ends.
Auto Trait Implementations§
impl<S> Freeze for BoxedBodyStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for BoxedBodyStream<S>where
S: RefUnwindSafe,
impl<S> Send for BoxedBodyStream<S>where
S: Send,
impl<S> Sync for BoxedBodyStream<S>where
S: Sync,
impl<S> Unpin for BoxedBodyStream<S>where
S: Unpin,
impl<S> UnwindSafe for BoxedBodyStream<S>where
S: UnwindSafe,
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