Struct protobuf::types::ProtobufTypeEnum [−][src]
pub struct ProtobufTypeEnum<E: ProtobufEnum>(_);
Expand description
enum
Trait Implementations
type Value = E
type Value = E
Rust type of value
Read value from CodedInputStream
Get value from UnknownValues
Compute wire size
fn write_with_cached_size(
field_number: u32,
value: &E,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
fn write_with_cached_size(
field_number: u32,
value: &E,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]Write a value with previously cached size
Compute size adding length prefix if wire type is length delimited (i. e. string, bytes, message) Read more
Get previously computed size
Get previously cached size with length prefix
Auto Trait Implementations
impl<E> RefUnwindSafe for ProtobufTypeEnum<E> where
E: RefUnwindSafe,
impl<E> Send for ProtobufTypeEnum<E> where
E: Send,
impl<E> Sync for ProtobufTypeEnum<E> where
E: Sync,
impl<E> Unpin for ProtobufTypeEnum<E> where
E: Unpin,
impl<E> UnwindSafe for ProtobufTypeEnum<E> where
E: UnwindSafe,