Struct protobuf::types::ProtobufTypeMessage
[−]
[src]
pub struct ProtobufTypeMessage<M: Message>(_);
Trait Implementations
impl<M: Message + MessageStatic + ProtobufValue> ProtobufType for ProtobufTypeMessage<M>
[src]
type Value = M
fn wire_type() -> WireType
fn read(is: &mut CodedInputStream) -> ProtobufResult<M>
fn compute_size(value: &M) -> u32
fn get_cached_size(value: &M) -> u32
Get previously computed size
fn write_with_cached_size<W>(field_number: u32,
value: &Self::Value,
os: &mut W)
-> ProtobufResult<()> where W: Write
value: &Self::Value,
os: &mut W)
-> ProtobufResult<()> where W: Write
fn compute_size_with_length_delimiter(value: &Self::Value) -> u32
Compute size adding length prefix if wire type is length delimited (i. e. string, bytes, message) Read more
fn get_cached_size_with_length_delimiter(value: &Self::Value) -> u32
Get previously cached size with length prefix