rogue_runtime/traits/type_info.rs
1use crate::TypeId;
2
3/// Provides static type metadata for message types.
4///
5/// Each message type that can be sent or received in the runtime
6/// must implement `TypeInfo` to provide a unique `TypeId` derived
7/// from its type name (hashed with SHA-256).
8pub trait TypeInfo {
9 fn type_name() -> &'static str;
10 fn type_id() -> TypeId;
11}