pub struct Data<B> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<B> Body for Data<B>where
B: Body,
impl<B> Body for Data<B>where
B: Body,
Source§fn poll_frame(
self: Pin<&mut Data<B>>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Data<B> as Body>::Data>, <Data<B> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Data<B>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Data<B> as Body>::Data>, <Data<B> as Body>::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 Data<B>where
<PinnedFieldsOfHelperStruct<__Origin<'__pin, B>> as PinnedFieldsOfHelperTrait>::Actual: Unpin,
Auto Trait Implementations§
impl<B> Freeze for Data<B>where
B: Freeze,
impl<B> RefUnwindSafe for Data<B>where
B: RefUnwindSafe,
impl<B> Send for Data<B>where
B: Send,
impl<B> Sync for Data<B>where
B: Sync,
impl<B> UnsafeUnpin for Data<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Data<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