Struct http_body::Empty [−][src]
pub struct Empty<D> { /* fields omitted */ }
Expand description
A body that is always empty.
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.
Auto Trait Implementations
impl<D> RefUnwindSafe for Empty<D>
impl<D> UnwindSafe for Empty<D>
Blanket Implementations
Mutably borrows from an owned value. Read more