Trait RequestMessage
Source pub trait RequestMessage: Send + Sync {
// Required methods
fn compute_size(&self) -> u64;
fn serial_with_output_stream(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Status>;
fn parse_from_input_stream(
&mut self,
is: &mut CodedInputStream<'_>,
) -> Result<(), Status>;
// Provided methods
fn compute_size_with_tag_and_len(&self) -> u64 { ... }
fn serial_with_tag_and_len(&self, os: &mut CodedOutputStream<'_>) { ... }
fn serial(&self) -> Result<Vec<u8>, String> { ... }
fn parse_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Status> { ... }
fn parse_from_input_stream_with_tag_and_len(
&mut self,
is: &mut CodedInputStream<'_>,
) { ... }
fn parse_from_bytes_return_num(
&mut self,
bytes: &[u8],
) -> Result<u64, Status> { ... }
}