protobuf

Trait EnumFull

source
pub trait EnumFull: Enum {
    // Required methods
    fn descriptor(&self) -> EnumValueDescriptor;
    fn enum_descriptor() -> EnumDescriptor;
}
Expand description

Trait is implemented for all enum types if lite runtime is not requested.

This trait provides access to runtime reflection.

Required Methods§

source

fn descriptor(&self) -> EnumValueDescriptor

Get enum value descriptor.

source

fn enum_descriptor() -> EnumDescriptor

Get enum descriptor by type.

Object Safety§

This trait is not object safe.

Implementors§