pub struct Full<D> { /* private fields */ }Expand description
A body that consists of a single chunk.
Implementations§
Trait Implementations§
Source§impl<D> Body for Full<D>where
D: Buf,
impl<D> Body for Full<D>where
D: Buf,
Source§type Data = D
type Data = D
The payload data type yielded by
Frame::Data variants.Source§type Error = Infallible
type Error = Infallible
The error type that can occur while producing frames.
Source§fn poll_frame(
self: Pin<&mut Full<D>>,
_: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Full<D> as Body>::Data>, <Full<D> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Full<D>>, _: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Full<D> as Body>::Data>, <Full<D> 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<D> Copy for Full<D>where
D: Copy,
impl<'__pin, D> Unpin for Full<D>where
<PinnedFieldsOfHelperStruct<__Origin<'__pin, D>> as PinnedFieldsOfHelperTrait>::Actual: Unpin,
Auto Trait Implementations§
impl<D> Freeze for Full<D>where
D: Freeze,
impl<D> RefUnwindSafe for Full<D>where
D: RefUnwindSafe,
impl<D> Send for Full<D>where
D: Send,
impl<D> Sync for Full<D>where
D: Sync,
impl<D> UnsafeUnpin for Full<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Full<D>where
D: 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