pub trait StableEnum:
StableEnumTrace
+ Serialize
+ DeserializeOwned { }Expand description
Marker trait for enums whose variant tags on the wire are derived from
Keccak-256(variant_name). Apply with #[derive(StableEnum)].
The blanket impl below covers every type for which all three of
Serialize, DeserializeOwned, and StableEnumTrace are
implemented — #[derive(StableEnum)] emits all three at once.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.