Trait protobuf::ProtobufEnum [−][src]
Trait implemented by all protobuf enum types.
Required methods
fn value(&self) -> i32
[src]
Get enum i32
value.
fn from_i32(v: i32) -> Option<Self>
[src]
Try to create an enum from i32
value.
Return None
if value is unknown.
Provided methods
fn values() -> &'static [Self]ⓘ
[src]
Get all enum values for enum type.
fn descriptor(&self) -> &'static EnumValueDescriptor
[src]
Get enum value descriptor.
fn enum_descriptor(&self) -> &'static EnumDescriptor
[src]
Get enum descriptor.
fn enum_descriptor_static() -> &'static EnumDescriptor
[src]
Get enum descriptor by type.