Trait Decoder
Source pub trait Decoder {
type Item;
// Required method
fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Self::Item, Status>;
}
Expand description
Decodes gRPC message types
Decode a message from the buffer.
The buffer will contain exactly the bytes of a full message. There
is no need to get the length from the bytes, gRPC framing is handled
for you.