[−][src]Struct tower_hyper::body::LiftBody
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]
T: HttpBody + Send + 'static,
T::Data: Send,
T::Error: Into<Box<dyn Error + Send + Sync>>,
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 poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>[src]
fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Self::Error>[src]
fn is_end_stream(&self) -> bool[src]
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
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,