Trait swagger::BodyExt[][src]

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[src]

Raw body type

type Error[src]

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>>[src]

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...