Skip to main content

IntoBody

Trait IntoBody 

Source
pub trait IntoBody {
    type Body: Body;

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

Required Associated Types§

Required Methods§

Source

fn into_body(self) -> Self::Body

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoBody for Incoming

Source§

type Body = Incoming

Source§

fn into_body(self) -> Self

Source§

impl<D: Buf> IntoBody for Empty<D>

Source§

type Body = Empty<D>

Source§

fn into_body(self) -> Self

Source§

impl<D: Buf> IntoBody for Full<D>

Source§

type Body = Full<D>

Source§

fn into_body(self) -> Self

Implementors§

Source§

impl<B: Body> IntoBody for Request<B>

Source§

type Body = B

Source§

impl<B: Body> IntoBody for Response<B>

Source§

type Body = B