[][src]Trait tower_grpc::generic::Codec

pub trait Codec {
    type Encode;
    type Encoder: Encoder<Item = Self::Encode>;
    type Decode;
    type Decoder: Decoder<Item = Self::Decode>;
    fn encoder(&mut self) -> Self::Encoder;
fn decoder(&mut self) -> Self::Decoder; }

Encodes and decodes gRPC message types

Associated Types

type Encode

The encode type

type Encoder: Encoder<Item = Self::Encode>

Encoder type

type Decode

The decode type

type Decoder: Decoder<Item = Self::Decode>

Decoder type

Loading content...

Required methods

fn encoder(&mut self) -> Self::Encoder

Returns a new encoder

fn decoder(&mut self) -> Self::Decoder

Returns a new decoder

Loading content...

Implementors

Loading content...