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 Error = Infallible
type Error = Infallible
The error type this
Body might generate.Source§fn poll_frame(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<D>, Self::Error>>>
fn poll_frame( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<D>, Self::Error>>>
Attempt to pull out the next data buffer of this stream.
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true when the end of stream has been reached. Read moreimpl<D: Copy> Copy for Full<D>
impl<'__pin, D> Unpin for Full<D>where
__Origin<'__pin, D>: 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