[][src]Struct tower_grpc::generic::Encode

#[must_use = "futures do nothing unless polled"]
pub struct Encode<T, U> { /* fields omitted */ }

Encodes gRPC message types

Trait Implementations

impl<T: Debug, U: Debug> Debug for Encode<T, U>[src]

impl<T, U> Body for Encode<T, U> where
    T: Encoder<Item = U::Item>,
    U: Stream,
    U::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

type Data = <Bytes as IntoBuf>::Buf

Values yielded by the Body.

type Error = Status

The error type this BufStream might generate.

fn size_hint(&self) -> SizeHint[src]

Returns the bounds on the remaining length of the stream. Read more

Auto Trait Implementations

impl<T, U> Unpin for Encode<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> Sync for Encode<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Send for Encode<T, U> where
    T: Send,
    U: Send

impl<T, U> UnwindSafe for Encode<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

impl<T, U> RefUnwindSafe for Encode<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.

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

fn into_buf_stream(self) -> IntoBufStream<Self>[src]

Wrap the Body so that it implements tokio_buf::BufStream directly.