Trait ProtoMessage
Source pub trait ProtoMessage:
Debug
+ Clear
+ Any
+ Send
+ Sync {
Show 22 methods
// Required methods
fn descriptor(&self) -> &'static MessageDescriptor;
fn is_initialized(&self) -> bool;
fn merge_from(
&mut self,
is: &mut CodedInputStream<'_>,
) -> Result<(), ProtobufError>;
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError>;
fn compute_size(&self) -> u32;
fn get_cached_size(&self) -> u32;
fn get_unknown_fields<'s>(&'s self) -> &'s UnknownFields;
fn mut_unknown_fields<'s>(&'s mut self) -> &'s mut UnknownFields;
fn as_any(&self) -> &(dyn Any + 'static);
// Provided methods
fn write_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError> { ... }
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError> { ... }
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>,
) -> Result<(), ProtobufError> { ... }
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError> { ... }
fn check_initialized(&self) -> Result<(), ProtobufError> { ... }
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError> { ... }
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError> { ... }
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError> { ... }
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), ProtobufError> { ... }
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError> { ... }
fn type_id(&self) -> TypeId { ... }
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static) { ... }
fn into_any(self: Box<Self>) -> Box<dyn Any> { ... }
}