pub trait Decoder {
type Item;
type Error: From<Error>;
// Required method
fn decode(
&mut self,
src: &mut DecodeBuf<'_>,
) -> Result<Option<Self::Item>, Self::Error>;
// Provided method
fn buffer_settings(&self) -> BufferSettings { ... }
}
Expand description
Decodes gRPC message types
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn buffer_settings(&self) -> BufferSettings
fn buffer_settings(&self) -> BufferSettings
Controls how tonic creates and expands decode buffers.