[−][src]Struct tower_http_util::body::IntoBufStream
Wraps a Body
instance, implementing tokio_buf::BufStream
.
See into_buf_stream
function documentation for more details.
Trait Implementations
impl<T: Debug> Debug for IntoBufStream<T>
[src]
impl<T> BufStream for IntoBufStream<T> where
T: Body,
[src]
T: Body,
Auto Trait Implementations
impl<T> Send for IntoBufStream<T> where
T: Send,
T: Send,
impl<T> Sync for IntoBufStream<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T> BodyExt for T where
T: Body,
[src]
T: Body,
fn into_buf_stream(self) -> IntoBufStream<Self> where
Self: Sized,
[src]
Self: Sized,
Wrap the Body
so that it implements tokio_buf::BufStream directly.
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,
impl<T> Body for T where
T: BufStream,
[src]
T: BufStream,
type Data = <T as BufStream>::Item
Values yielded by the Body
.
type Error = <T as BufStream>::Error
The error type this BufStream
might generate.
fn poll_data(
&mut self
) -> Result<Async<Option<<T as Body>::Data>>, <T as Body>::Error>
[src]
&mut self
) -> Result<Async<Option<<T as Body>::Data>>, <T as Body>::Error>
fn size_hint(&self) -> SizeHint
[src]
fn poll_trailers(
&mut self
) -> Result<Async<Option<HeaderMap<HeaderValue>>>, <T as Body>::Error>
[src]
&mut self
) -> Result<Async<Option<HeaderMap<HeaderValue>>>, <T as Body>::Error>
fn is_end_stream(&self) -> bool
[src]
impl<T> BufStreamExt for T where
T: BufStream,
[src]
T: BufStream,
fn chain<T>(self, other: T) -> Chain<Self, T> where
T: BufStream<Error = Self::Error>,
[src]
T: BufStream<Error = Self::Error>,
Takes two buf streams and creates a new buf stream over both in sequence. Read more
fn collect<T>(self) -> Collect<Self, T> where
T: FromBufStream<Self::Item>,
[src]
T: FromBufStream<Self::Item>,
Consumes all data from self
, storing it in byte storage of type T
. Read more
fn limit(self, amount: u64) -> Limit<Self>
[src]
Limit the number of bytes that the stream can yield. Read more
fn into_stream(self) -> IntoStream<Self>
[src]
Creates a Stream
from a BufStream
. Read more