pub struct BodyHttp { /* private fields */ }
Trait Implementations§
source§impl Body for BodyHttp
impl Body for BodyHttp
source§fn poll_data(
self: Pin<&mut BodyHttp>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, Error>>>
fn poll_data( self: Pin<&mut BodyHttp>, cx: &mut Context<'_> ) -> Poll<Option<Result<Bytes, Error>>>
Attempt to pull out the next data buffer of this stream.
source§fn poll_trailers(
self: Pin<&mut BodyHttp>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Error>>
fn poll_trailers( self: Pin<&mut BodyHttp>, _cx: &mut Context<'_> ) -> Poll<Result<Option<HeaderMap>, Error>>
Poll for an optional single
HeaderMap
of trailers. Read moresource§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true
when the end of stream has been reached. Read moresource§fn size_hint(&self) -> SizeHint
fn size_hint(&self) -> SizeHint
Returns the bounds on the remaining length of the stream. Read more
source§fn map_data<F, B>(self, f: F) -> MapData<Self, F>where
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf,
fn map_data<F, B>(self, f: F) -> MapData<Self, F>where Self: Sized, F: FnMut(Self::Data) -> B, B: Buf,
Maps this body’s data value to a different value.
source§fn map_err<F, E>(self, f: F) -> MapErr<Self, F>where
Self: Sized,
F: FnMut(Self::Error) -> E,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>where Self: Sized, F: FnMut(Self::Error) -> E,
Maps this body’s error value to a different value.
source§fn boxed(self) -> BoxBody<Self::Data, Self::Error>where
Self: Sized + Send + Sync + 'static,
fn boxed(self) -> BoxBody<Self::Data, Self::Error>where Self: Sized + Send + Sync + 'static,
Turn this body into a boxed trait object.
source§fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>where
Self: Sized + Send + 'static,
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>where Self: Sized + Send + 'static,
Turn this body into a boxed trait object that is !Sync.
impl<'__pin> Unpin for BodyHttpwhere __Origin<'__pin>: Unpin,
Auto Trait Implementations§
impl !RefUnwindSafe for BodyHttp
impl Send for BodyHttp
impl Sync for BodyHttp
impl !UnwindSafe for BodyHttp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more