Trait protobuf::core::Message
[−]
[src]
pub trait Message: Debug + Clear + Any + Send + Sync { fn descriptor(&self) -> &'static MessageDescriptor; fn is_initialized(&self) -> bool; fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>; fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>; 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) -> &Any; fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()> { ... } fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()> { ... } fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> ProtobufResult<()> { ... } fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()> { ... } fn check_initialized(&self) -> ProtobufResult<()> { ... } fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()> { ... } fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()> { ... } fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>> { ... } fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> ProtobufResult<()> { ... } fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>> { ... } fn type_id(&self) -> TypeId { ... } fn as_any_mut(&mut self) -> &mut Any { ... } fn into_any(self: Box<Self>) -> Box<Any> { ... } }
Required Methods
fn descriptor(&self) -> &'static MessageDescriptor
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
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) -> &Any
Provided Methods
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
fn check_initialized(&self) -> ProtobufResult<()>
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn type_id(&self) -> TypeId
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
Implementors
impl Message for FileDescriptorSet
impl Message for FileDescriptorProto
impl Message for DescriptorProto
impl Message for DescriptorProto_ExtensionRange
impl Message for DescriptorProto_ReservedRange
impl Message for FieldDescriptorProto
impl Message for OneofDescriptorProto
impl Message for EnumDescriptorProto
impl Message for EnumValueDescriptorProto
impl Message for ServiceDescriptorProto
impl Message for MethodDescriptorProto
impl Message for FileOptions
impl Message for MessageOptions
impl Message for FieldOptions
impl Message for OneofOptions
impl Message for EnumOptions
impl Message for EnumValueOptions
impl Message for ServiceOptions
impl Message for MethodOptions
impl Message for UninterpretedOption
impl Message for UninterpretedOption_NamePart
impl Message for SourceCodeInfo
impl Message for SourceCodeInfo_Location
impl Message for GeneratedCodeInfo
impl Message for GeneratedCodeInfo_Annotation
impl Message for CodeGeneratorRequest
impl Message for CodeGeneratorResponse
impl Message for CodeGeneratorResponse_File
impl Message for Any
impl Message for Api
impl Message for Method
impl Message for Mixin
impl Message for Duration
impl Message for Empty
impl Message for FieldMask
impl Message for SourceContext
impl Message for Struct
impl Message for Value
impl Message for ListValue
impl Message for Timestamp
impl Message for Type
impl Message for Field
impl Message for Enum
impl Message for EnumValue
impl Message for Option
impl Message for DoubleValue
impl Message for FloatValue
impl Message for Int64Value
impl Message for UInt64Value
impl Message for Int32Value
impl Message for UInt32Value
impl Message for BoolValue
impl Message for StringValue
impl Message for BytesValue