Trait pb_jelly::ClosedProtoEnum[][src]

pub trait ClosedProtoEnum: ProtoEnum + Debug {
    fn name(self) -> &'static str;
}
Expand description

Trait implemented by enums which are generated with the err_if_default option. Note that these enums are not forward compatible, since they do not handle unrecognized enum variants (and will fail to deserialize instead).

Note that the Default variant of the ClosedProtoEnum is not safe and should only be used for deserialization.

Required methods

Get the name of this variant.

Implementors