Skip to main content

IntoBody

Trait IntoBody 

Source
pub trait IntoBody<'req>: SealedBody {
    // Required method
    fn into_response_body(self) -> BodyInner<'req>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'req> IntoBody<'req> for &[u8]

Source§

impl<'req> IntoBody<'req> for &str

Source§

impl<'req> IntoBody<'req> for Owned

Source§

impl<'req> IntoBody<'req> for Shared

Source§

impl<'req> IntoBody<'req> for String

Source§

impl<'req> IntoBody<'req> for Vec<u8>

Implementors§

Source§

impl<'req> IntoBody<'req> for BodyInner<'req>

Source§

impl<'req> IntoBody<'req> for LocalFrameBytesRef<'req>

Source§

impl<'req> IntoBody<'req> for TextBody