BufferedToBody

Trait BufferedToBody 

Source
pub trait BufferedToBody {
    type Buffered;
    type Body: Body;

    // Required method
    fn buffered_to_body(buffered: Self::Buffered) -> Self::Body;
}
Expand description

Conversion of a buffered type into a body.

Required Associated Types§

Source

type Buffered

The buffered body parts type to convert from.

Source

type Body: Body

The body type to convert to.

Required Methods§

Source

fn buffered_to_body(buffered: Self::Buffered) -> Self::Body

Consume buffered and turn it into a body.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Buffered> BufferedToBody for Trivial<Buffered>
where Buffered: IntoBody,

Source§

type Buffered = Buffered

Source§

type Body = <Buffered as IntoBody>::Body