Struct tower_http::services::fs::AsyncReadBody [−][src]
pub struct AsyncReadBody<T> { /* fields omitted */ }This is supported on crate feature
fs only.Expand description
Adapter that turns an impl AsyncRead to an impl Body.
Trait Implementations
impl<T> Body for AsyncReadBody<T> where
T: AsyncRead, [src]
impl<T> Body for AsyncReadBody<T> where
T: AsyncRead, [src]fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>[src]
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>[src]Attempt to pull out the next data buffer of this stream.
fn poll_trailers(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>[src]
fn poll_trailers(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>[src]Poll for an optional single HeaderMap of trailers. Read more
fn is_end_stream(&self) -> bool[src]
fn is_end_stream(&self) -> bool[src]Returns true when the end of stream has been reached. Read more
fn size_hint(&self) -> SizeHint[src]
fn size_hint(&self) -> SizeHint[src]Returns the bounds on the remaining length of the stream. Read more
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin, [src]
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin, [src]Returns future that resolves to next data chunk, if any.
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin, [src]
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin, [src]Returns future that resolves to trailers, if any.
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf, [src]
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf, [src]Maps this body’s data value to a different value.
impl<T: Debug> Debug for AsyncReadBody<T>[src]
impl<T: Debug> Debug for AsyncReadBody<T>[src]impl<'pin, T> Unpin for AsyncReadBody<T> where
__AsyncReadBody<'pin, T>: Unpin, [src]
__AsyncReadBody<'pin, T>: Unpin,
Auto Trait Implementations
impl<T> RefUnwindSafe for AsyncReadBody<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for AsyncReadBody<T> where
T: Send,
T: Send,
impl<T> Sync for AsyncReadBody<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for AsyncReadBody<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> PolicyExt for T where
T: ?Sized, [src]
impl<T> PolicyExt for T where
T: ?Sized, [src]