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
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".