Struct http_body::combinators::BoxBody[][src]

pub struct BoxBody<D, E> { /* fields omitted */ }

A boxed Body trait object.

Implementations

impl<D, E> BoxBody<D, E>[src]

pub fn new<B>(body: B) -> Self where
    B: Body<Data = D, Error = E> + Send + Sync + 'static,
    D: Buf
[src]

Create a new BoxBody.

Trait Implementations

impl<D, E> Body for BoxBody<D, E> where
    D: Buf
[src]

type Data = D

Values yielded by the Body.

type Error = E

The error type this Body might generate.

impl<D, E> Debug for BoxBody<D, E>[src]

Auto Trait Implementations

impl<D, E> !RefUnwindSafe for BoxBody<D, E>

impl<D, E> Send for BoxBody<D, E>

impl<D, E> Sync for BoxBody<D, E>

impl<D, E> Unpin for BoxBody<D, E>

impl<D, E> !UnwindSafe for BoxBody<D, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.