Struct fire_http_representation::bytes_stream::StreamHttpBody [−][src]
pub struct StreamHttpBody<S> { /* fields omitted */ }
Expand description
A wrapper around BytesStream
implementing http_body::Body
.
Trait Implementations
impl<S: BytesStream> Body for StreamHttpBody<S>
[src]
impl<S: BytesStream> Body for StreamHttpBody<S>
[src]fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data>>>
[src]
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data>>>
[src]Attempt to pull out the next data buffer of this stream.
fn poll_trailers(
self: Pin<&mut Self>,
_: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>>>
[src]
fn poll_trailers(
self: Pin<&mut Self>,
_: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>>>
[src]Poll for an optional single HeaderMap
of trailers. Read more
fn is_end_stream(&self) -> bool
[src]
fn is_end_stream(&self) -> bool
[src]Returns true
when the end of stream has been reached. Read more
fn size_hint(&self) -> SizeHint
[src]
fn size_hint(&self) -> SizeHint
[src]Returns the bounds on the remaining length of the stream. Read more
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to next data chunk, if any.
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to trailers, if any.
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
B: Buf,
F: FnMut(Self::Data) -> B,
[src]
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
B: Buf,
F: FnMut(Self::Data) -> B,
[src]Maps this body’s data value to a different value.
impl<S: Debug> Debug for StreamHttpBody<S>
[src]
impl<S: Debug> Debug for StreamHttpBody<S>
[src]impl<'__pin, S> Unpin for StreamHttpBody<S> where
__Origin<'__pin, S>: Unpin,
[src]
__Origin<'__pin, S>: Unpin,
Auto Trait Implementations
impl<S> RefUnwindSafe for StreamHttpBody<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for StreamHttpBody<S> where
S: Send,
S: Send,
impl<S> Sync for StreamHttpBody<S> where
S: Sync,
S: Sync,
impl<S> UnwindSafe for StreamHttpBody<S> where
S: UnwindSafe,
S: UnwindSafe,