pub struct LimitBody<B> { /* private fields */ }Trait Implementations§
Source§impl<B> Body for LimitBody<B>where
B: BodyStream,
impl<B> Body for LimitBody<B>where
B: BodyStream,
Source§type Error = Box<dyn Error + Sync + Send>
type Error = Box<dyn Error + Sync + Send>
The error type that can occur while producing frames.
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 LimitBody<B>where
PinnedFieldsOf<__Origin<'__pin, B>>: Unpin,
Auto Trait Implementations§
impl<B> Freeze for LimitBody<B>where
B: Freeze,
impl<B> RefUnwindSafe for LimitBody<B>where
B: RefUnwindSafe,
impl<B> Send for LimitBody<B>where
B: Send,
impl<B> Sync for LimitBody<B>where
B: Sync,
impl<B> UnsafeUnpin for LimitBody<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for LimitBody<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