pub trait IntoBody {
    // Required method
    fn into_body(self) -> Vec<u8> ;
}
Expand description

A trait for any type that can be turned into a Response body

Required Methods§

source

fn into_body(self) -> Vec<u8>

Turn self into a Response body

Implementations on Foreign Types§

source§

impl IntoBody for &str

source§

impl IntoBody for ()

source§

impl IntoBody for String

source§

impl IntoBody for Vec<u8>

source§

impl IntoBody for Bytes

source§

impl<T: IntoBody> IntoBody for Option<T>

Implementors§