Struct http_body::Empty [−][src]
pub struct Empty<D> { /* fields omitted */ }
A body that is always empty.
Implementations
Trait Implementations
impl<D: Buf> Body for Empty<D>
[src]
impl<D: Buf> Body for Empty<D>
[src]type Data = D
Values yielded by the Body
.
type Error = Infallible
The error type this Body
might generate.
fn poll_data(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
fn poll_trailers(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
fn is_end_stream(&self) -> bool
[src]
fn size_hint(&self) -> SizeHint
[src]
fn data(&mut self) -> Data<'_, Self>ⓘ where
Self: Unpin + Sized,
[src]
Self: Unpin + Sized,
fn trailers(&mut self) -> Trailers<'_, Self>ⓘ where
Self: Unpin + Sized,
[src]
Self: Unpin + Sized,
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf,
[src]
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F> where
Self: Sized,
F: FnMut(Self::Error) -> E,
[src]
Self: Sized,
F: FnMut(Self::Error) -> E,
fn boxed(self) -> BoxBody<Self::Data, Self::Error> where
Self: Sized + Send + Sync + 'static,
[src]
Self: Sized + Send + Sync + 'static,
impl<D> Clone for Empty<D>
[src]
impl<D> Clone for Empty<D>
[src]