pub struct StreamBody<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T> StreamBody<T>
impl<T> StreamBody<T>
Trait Implementations§
Source§impl<S, D, E> Body for StreamBody<S>
impl<S, D, E> Body for StreamBody<S>
Source§type Data = D
type Data = D
The payload data type yielded by
Frame::Data variants.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 the next frame from the body. Read more
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Indicates whether the body has been fully consumed. Read more
Source§impl<T: Debug> Debug for StreamBody<T>
impl<T: Debug> Debug for StreamBody<T>
Source§impl<B> Stream for StreamBody<B>where
B: Body,
impl<B> Stream for StreamBody<B>where
B: Body,
Source§type Item = Result<Frame<<B as Body>::Data>, <B as Body>::Error>
type Item = Result<Frame<<B as Body>::Data>, <B as Body>::Error>
Values yielded by the stream.
impl<'__pin, T> Unpin for StreamBody<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for StreamBody<T>where
T: Freeze,
impl<T> RefUnwindSafe for StreamBody<T>where
T: RefUnwindSafe,
impl<T> Send for StreamBody<T>where
T: Send,
impl<T> Sync for StreamBody<T>where
T: Sync,
impl<T> UnsafeUnpin for StreamBody<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StreamBody<T>where
T: 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