Struct async_http_body::AsyncBodyAdapter
source · [−]pub struct AsyncBodyAdapter<B> where
B: AsyncBody + 'static, { /* private fields */ }
Implementations
sourceimpl<B> AsyncBodyAdapter<B> where
B: AsyncBody,
impl<B> AsyncBodyAdapter<B> where
B: AsyncBody,
Trait Implementations
sourceimpl<B> Body for AsyncBodyAdapter<B> where
for<'a> B: AsyncBody + 'a,
impl<B> Body for AsyncBodyAdapter<B> where
for<'a> B: AsyncBody + 'a,
sourcefn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
Attempt to pull out the next data buffer of this stream.
sourcefn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
Poll for an optional single HeaderMap
of trailers. Read more
sourcefn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns true
when the end of stream has been reached. Read more
sourcefn size_hint(&self) -> SizeHint
fn size_hint(&self) -> SizeHint
Returns the bounds on the remaining length of the stream. Read more
impl<'pin, B> Unpin for AsyncBodyAdapter<B> where
B: AsyncBody + 'static,
__AsyncBodyAdapter<'pin, B>: Unpin,
Auto Trait Implementations
impl<B> !RefUnwindSafe for AsyncBodyAdapter<B>
impl<B> !Send for AsyncBodyAdapter<B>
impl<B> !Sync for AsyncBodyAdapter<B>
impl<B> !UnwindSafe for AsyncBodyAdapter<B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more