Trait swagger::BodyExt

source ·
pub trait BodyExt {
    type Raw;
    type Error;

    // Required method
    fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>;
}
Expand description

Additional function for hyper::Body

Required Associated Types§

source

type Raw

Raw body type

source

type Error

Error if we can’t gather up the raw body

Required Methods§

source

fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>

Collect the body into a raw form

Implementors§

source§

impl<T, E> BodyExt for Twhere T: Stream<Item = Result<Bytes, E>> + Unpin + Send + 'static,

§

type Raw = Vec<u8, Global>

§

type Error = E