Struct tower_http::services::fs::AsyncReadBody
source · [−]pub struct AsyncReadBody<T> { /* private fields */ }fs only.Expand description
Adapter that turns an impl AsyncRead to an impl Body.
Trait Implementations
Attempt to pull out the next data buffer of this stream.
Poll for an optional single HeaderMap of trailers. Read more
Returns true when the end of stream has been reached. Read more
Returns the bounds on the remaining length of the stream. Read more
Returns future that resolves to next data chunk, if any.
Returns future that resolves to trailers, if any.
Maps this body’s data value to a different value.
Maps this body’s error value to a different value.
Turn this body into a boxed trait object.
Turn this body into a boxed trait object that is !Sync.
Auto Trait Implementations
impl<T> RefUnwindSafe for AsyncReadBody<T> where
T: RefUnwindSafe,
impl<T> Send for AsyncReadBody<T> where
T: Send,
impl<T> Sync for AsyncReadBody<T> where
T: Sync,
impl<T> UnwindSafe for AsyncReadBody<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more