[−][src]Struct tower_grpc::Encode
A protobuf encoded gRPC response body
Trait Implementations
impl<T> Debug for Encode<T> where
T: Stream + Debug,
T::Item: Debug,
T::Error: Debug,
[src]
T: Stream + Debug,
T::Item: Debug,
T::Error: Debug,
impl<T> Body for Encode<T> where
T: Stream<Error = Status>,
T::Item: Message,
[src]
T: Stream<Error = Status>,
T::Item: Message,
type Data = <Encode<Encoder<T::Item>, T> as HttpBody>::Data
Values yielded by the Body
.
type Error = <Encode<Encoder<T::Item>, T> as HttpBody>::Error
The error type this BufStream
might generate.
fn is_end_stream(&self) -> bool
[src]
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>
[src]
fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Self::Error>
[src]
fn size_hint(&self) -> SizeHint
[src]
Returns the bounds on the remaining length of the stream. Read more
Auto Trait Implementations
impl<T> Unpin for Encode<T> where
T: Unpin,
<T as Stream>::Item: Unpin,
T: Unpin,
<T as Stream>::Item: Unpin,
impl<T> Sync for Encode<T> where
T: Sync,
<T as Stream>::Item: Sync,
T: Sync,
<T as Stream>::Item: Sync,
impl<T> Send for Encode<T> where
T: Send,
<T as Stream>::Item: Send,
T: Send,
<T as Stream>::Item: Send,
impl<T> UnwindSafe for Encode<T> where
T: UnwindSafe,
<T as Stream>::Item: UnwindSafe,
T: UnwindSafe,
<T as Stream>::Item: UnwindSafe,
impl<T> RefUnwindSafe for Encode<T> where
T: RefUnwindSafe,
<T as Stream>::Item: RefUnwindSafe,
T: RefUnwindSafe,
<T as Stream>::Item: RefUnwindSafe,
Blanket Implementations
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> 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.