[][src]Trait swagger::BodyExt

pub trait BodyExt {
    type Raw;
    type Error;
    fn to_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>;
}

Additional function for hyper::Body

Associated Types

type Raw

Raw body type

type Error

Error if we can't gather up the raw body

Loading content...

Required methods

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

Collect the body into a raw form

Loading content...

Implementors

impl<T, E> BodyExt for T where
    T: Stream<Item = Result<Bytes, E>> + Unpin + Send + 'static, 
[src]

type Raw = Vec<u8>

type Error = E

Loading content...