[−][src]Struct tower_h2::RecvBody
Allows a stream to be read from the remote.
Methods
impl RecvBody[src]
pub fn stream_id(&self) -> StreamId[src]
Returns the stream ID of the received stream, or None if this body
does not correspond to a stream.
Trait Implementations
impl Debug for RecvBody[src]
impl Body for RecvBody[src]
type Data = Data
Values yielded by the Body.
type Error = Error
The error type this BufStream might generate.
fn is_end_stream(&self) -> bool[src]
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Error>[src]
fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Error>[src]
fn size_hint(&self) -> SizeHint[src]
Returns the bounds on the remaining length of the stream. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto 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> BodyExt for T where
T: Body, [src]
T: Body,
fn into_buf_stream(self) -> IntoBufStream<Self>[src]
Wrap the Body so that it implements tokio_buf::BufStream directly.
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>