pub struct AsyncBody<B> { /* private fields */ }Trait Implementations§
Source§impl<B, T, E> Body for AsyncBody<B>
impl<B, T, E> Body for AsyncBody<B>
Source§type Data = Bytes
type Data = Bytes
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
impl<'__pin, B> Unpin for AsyncBody<B>where
PinnedFieldsOf<__Origin<'__pin, B>>: Unpin,
Auto Trait Implementations§
impl<B> Freeze for AsyncBody<B>where
B: Freeze,
impl<B> RefUnwindSafe for AsyncBody<B>where
B: RefUnwindSafe,
impl<B> Send for AsyncBody<B>where
B: Send,
impl<B> Sync for AsyncBody<B>where
B: Sync,
impl<B> UnsafeUnpin for AsyncBody<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for AsyncBody<B>where
B: 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