[][src]Struct tower_hyper::body::LiftBody

pub struct LiftBody<T> { /* fields omitted */ }

Lifts a body to support Payload

Trait Implementations

impl<T: HttpBody> From<T> for LiftBody<T>[src]

impl<T: Debug> Debug for LiftBody<T>[src]

impl<T> Payload for LiftBody<T> where
    T: HttpBody + Send + 'static,
    T::Data: Send,
    T::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

type Data = T::Data

A buffer of bytes representing a single chunk of a body.

type Error = T::Error

The error type of this stream.

fn content_length(&self) -> Option<u64>[src]

Return a length of the total bytes that will be streamed, if known. Read more

Auto Trait Implementations

impl<T> Sync for LiftBody<T> where
    T: Sync

impl<T> Unpin for LiftBody<T> where
    T: Unpin

impl<T> Send for LiftBody<T> where
    T: Send

impl<T> UnwindSafe for LiftBody<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for LiftBody<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T