Struct http_body::combinators::BoxBody [−][src]
pub struct BoxBody<D, E> { /* fields omitted */ }A boxed Body trait object.
Implementations
Trait Implementations
impl<D, E> Body for BoxBody<D, E> where
D: Buf, [src]
impl<D, E> Body for BoxBody<D, E> where
D: Buf, [src]type Data = D
type Data = DValues yielded by the Body.
type Error = E
type Error = EThe error type this Body might generate.
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>[src]
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>[src]Attempt to pull out the next data buffer of this stream.
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>[src]
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>[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 + Sized, [src]
fn data(&mut self) -> Data<'_, Self>ⓘ where
Self: Unpin + Sized, [src]Returns future that resolves to next data chunk, if any.
fn trailers(&mut self) -> Trailers<'_, Self>ⓘ where
Self: Unpin + Sized, [src]
fn trailers(&mut self) -> Trailers<'_, Self>ⓘ where
Self: Unpin + Sized, [src]Returns future that resolves to trailers, if any.
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf, [src]
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf, [src]Maps this body’s data value to a different value.