Struct http_body::Full [−][src]
pub struct Full<D> { /* fields omitted */ }
Expand description
A body that consists of a single chunk.
Implementations
Trait Implementations
type Data = D
type Data = D
Values yielded by the Body
.
type Error = Infallible
type Error = Infallible
The error type this Body
might generate.
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.
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.
Performs the conversion.
Auto Trait Implementations
impl<D> RefUnwindSafe for Full<D> where
D: RefUnwindSafe,
impl<D> UnwindSafe for Full<D> where
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more