protocol/
enum_ty.rs

1use crate::Parcel;
2
3/// An `enum` type.
4pub trait Enum : Parcel {
5    /// The type used to store the enum discriminant
6    type Discriminant: Parcel;
7
8    /// Gets the discriminator of the current variant.
9    fn discriminator(&self) -> Self::Discriminant;
10}
11