pub trait Codec {
type Encode;
type Encoder: Encoder<Item = Self::Encode>;
type Decode;
type Decoder: Decoder<Item = Self::Decode>;
// Required methods
fn encoder(&mut self) -> Self::Encoder;
fn decoder(&mut self) -> Self::Decoder;
}Expand description
Encodes and decodes gRPC message types