rogue-runtime 0.1.0

Async RPC Runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::TypeId;

/// Provides static type metadata for message types.
///
/// Each message type that can be sent or received in the runtime
/// must implement `TypeInfo` to provide a unique `TypeId` derived
/// from its type name (hashed with SHA-256).
pub trait TypeInfo {
    fn type_name() -> &'static str;
    fn type_id() -> TypeId;
}