Struct http_body::Full [−][src]
pub struct Full<D> { /* fields omitted */ }
A body that consists of a single chunk.
Implementations
Trait Implementations
impl<D> Body for Full<D> where
D: Buf,
[src]
impl<D> Body for Full<D> where
D: Buf,
[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<D, Self::Error>>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Option<Result<D, 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> From<&'static [u8]> for Full<D> where
D: Buf + From<&'static [u8]>,
[src]
impl<D> From<&'static [u8]> for Full<D> where
D: Buf + From<&'static [u8]>,
[src]fn from(slice: &'static [u8]) -> Self
[src]
impl<D, B: ?Sized> From<Cow<'static, B>> for Full<D> where
D: Buf + From<&'static B> + From<B::Owned>,
B: ToOwned,
[src]
impl<D, B: ?Sized> From<Cow<'static, B>> for Full<D> where
D: Buf + From<&'static B> + From<B::Owned>,
B: ToOwned,
[src]impl<D: Copy> Copy for Full<D>
[src]
impl<'__pin, D> Unpin for Full<D> where
__Origin<'__pin, D>: Unpin,
[src]
__Origin<'__pin, D>: Unpin,
Auto Trait Implementations
impl<D> RefUnwindSafe for Full<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for Full<D> where
D: Send,
D: Send,
impl<D> Sync for Full<D> where
D: Sync,
D: Sync,
impl<D> UnwindSafe for Full<D> where
D: UnwindSafe,
D: UnwindSafe,