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