pub trait Message: TypeHash {
// Provided methods
fn hash() -> MessageHash { ... }
fn as_str() -> &'static str { ... }
}Expand description
Trait for types that should be considered as a message type.
Provided Methods§
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.