[][src]Struct tower_grpc::Encode

pub struct Encode<T> where
    T: Stream
{ /* fields omitted */ }

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]

impl<T> Body for Encode<T> where
    T: Stream<Error = Status>,
    T::Item: Message
[src]

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.

Auto Trait Implementations

impl<T> Sync for Encode<T> where
    T: Sync,
    <T as Stream>::Item: Sync

impl<T> Send for Encode<T> where
    T: Send,
    <T as Stream>::Item: Send

impl<T> Unpin for Encode<T> where
    T: Unpin,
    <T as Stream>::Item: Unpin

impl<T> UnwindSafe for Encode<T> where
    T: UnwindSafe,
    <T as Stream>::Item: UnwindSafe

impl<T> RefUnwindSafe for Encode<T> where
    T: RefUnwindSafe,
    <T as Stream>::Item: 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Body for T where
    T: BufStream
[src]

type Data = <T as BufStream>::Item

Values yielded by the Body.

type Error = <T as BufStream>::Error

The error type this BufStream might generate.