[−][src]Trait tower_grpc::generic::Encoder
Encodes gRPC message types
Associated Types
type Item
Type that is encoded
Associated Constants
const CONTENT_TYPE: &'static str
The content-type header for messages using this encoding.
Should be application/grpc+yourencoding
.
Required methods
fn encode(
&mut self,
item: Self::Item,
buf: &mut EncodeBuf
) -> Result<(), Status>
&mut self,
item: Self::Item,
buf: &mut EncodeBuf
) -> Result<(), Status>
Encode a message into the provided buffer.