[−][src]Struct http_body::combinators::BoxBody
A boxed Body
trait object.
Implementations
impl<D, E> BoxBody<D, E>
[src]
pub fn new<B>(body: B) -> Self where
B: Body<Data = D, Error = E> + Send + Sync + 'static,
D: Buf,
[src]
B: Body<Data = D, Error = E> + Send + Sync + 'static,
D: Buf,
Create a new BoxBody
.
Trait Implementations
impl<D, E> Body for BoxBody<D, E> where
D: Buf,
[src]
D: Buf,
type Data = D
Values yielded by the Body
.
type Error = E
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, E> Debug for BoxBody<D, E>
[src]
Auto Trait Implementations
impl<D, E> !RefUnwindSafe for BoxBody<D, E>
[src]
impl<D, E> Send for BoxBody<D, E>
[src]
impl<D, E> Sync for BoxBody<D, E>
[src]
impl<D, E> Unpin for BoxBody<D, E>
[src]
impl<D, E> !UnwindSafe for BoxBody<D, E>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,