Trait tonic::codec::Encoder[][src]

pub trait Encoder {
    type Item;
    type Error: From<Error>;
    fn encode(
        &mut self,
        item: Self::Item,
        dst: &mut EncodeBuf<'_>
    ) -> Result<(), Self::Error>; }
Expand description

Encodes gRPC message types

Associated Types

The type that is encoded.

The type of encoding errors.

The type of unrecoverable frame encoding errors.

Required methods

Encodes a message into the provided buffer.

Implementors