[−][src]Trait tonic::codec::Encoder
Encodes gRPC message types
Associated Types
type Item
The type that is encoded.
type Error: From<Error>
The type of encoding errors.
The type of unrecoverable frame encoding errors.
Required methods
fn encode(
&mut self,
item: Self::Item,
dst: &mut EncodeBuf
) -> Result<(), Self::Error>
&mut self,
item: Self::Item,
dst: &mut EncodeBuf
) -> Result<(), Self::Error>
Encodes a message into the provided buffer.