IntoBody

Trait IntoBody 

Source
pub trait IntoBody {
    type Body: Body;

    // Required method
    fn into_body(self) -> Self::Body;
}
Expand description

Convert self into body.

Required Associated Types§

Source

type Body: Body

The body type to convert to.

Required Methods§

Source

fn into_body(self) -> Self::Body

Consume self and turn into a body.

Implementors§

Source§

impl<Data: Buf> IntoBody for Buffered<Data>

Source§

type Body = Body<Data>