pub struct ProstCodec<T, U> { /* private fields */ }
Expand description
A Codec
that implements application/grpc+proto
via the prost library..
Trait Implementations§
source§impl<T: Clone, U: Clone> Clone for ProstCodec<T, U>
impl<T: Clone, U: Clone> Clone for ProstCodec<T, U>
source§fn clone(&self) -> ProstCodec<T, U>
fn clone(&self) -> ProstCodec<T, U>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T, U> Codec for ProstCodec<T, U>where
T: Message + Send + 'static,
U: Message + Default + Send + 'static,
impl<T, U> Codec for ProstCodec<T, U>where T: Message + Send + 'static, U: Message + Default + Send + 'static,
§type Encoder = ProstEncoder<T>
type Encoder = ProstEncoder<T>
The encoder that can encode a message.
§type Decoder = ProstDecoder<U>
type Decoder = ProstDecoder<U>
The encoder that can decode a message.