pub struct QuicIncomingBody<S> { /* private fields */ }
Available on (crate features
http1
or http2
or http3
) and crate feature http3
only.Expand description
An incoming HTTP/3 body.
Implements [http_body::Body
].
Implementations§
Trait Implementations§
Source§impl<S: RecvStream> Body for QuicIncomingBody<S>
impl<S: RecvStream> Body for QuicIncomingBody<S>
Source§type Error = H3BodyError
type Error = H3BodyError
The error type this
Body
might generate.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 out the next data buffer of this stream.
Source§fn size_hint(&self) -> SizeHint
fn size_hint(&self) -> SizeHint
Returns the bounds on the remaining length of the stream. Read more
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true
when the end of stream has been reached. Read moreSource§impl From<QuicIncomingBody<RecvStream>> for IncomingBody
impl From<QuicIncomingBody<RecvStream>> for IncomingBody
Source§fn from(body: QuicIncomingBody<RecvStream>) -> Self
fn from(body: QuicIncomingBody<RecvStream>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> !Freeze for QuicIncomingBody<S>
impl<S> !RefUnwindSafe for QuicIncomingBody<S>
impl<S> Send for QuicIncomingBody<S>where
S: Send,
impl<S> Sync for QuicIncomingBody<S>where
S: Sync,
impl<S> Unpin for QuicIncomingBody<S>
impl<S> !UnwindSafe for QuicIncomingBody<S>
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