Struct tonic::codec::ProstCodec[][src]

pub struct ProstCodec<T, U> { /* fields omitted */ }

A Codec that implements application/grpc+proto via the prost library..

Trait Implementations

impl<T: Clone, U: Clone> Clone for ProstCodec<T, U>[src]

impl<T, U> Codec for ProstCodec<T, U> where
    T: Message + Send + 'static,
    U: Message + Default + Send + 'static, 
[src]

type Encode = T

The encodable message.

type Decode = U

The decodable message.

type Encoder = ProstEncoder<T>

The encoder that can encode a message.

type Decoder = ProstDecoder<U>

The encoder that can decode a message.

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

impl<T, U> Default for ProstCodec<T, U>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]