pub struct BoxBody<D, E> { /* private fields */ }
Expand description

A boxed Body trait object.

Implementations§

Create a new BoxBody.

Trait Implementations§

Values yielded by the Body.
The error type this Body might generate.
Attempt to pull out the next data buffer of this stream.
Returns true when the end of stream has been reached. Read more
Returns the bounds on the remaining length of the stream. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Returns a future that resolves to the next Frame, if any.
Maps this body’s frame to a different kind.
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.
Turn this body into Collected body which will collect all the DATA frames and trailers.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.