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