pub trait MessageId: Versioned {
const MSG_ID: u16;
}
Expand description
Trait for data structures with a message type number.
Each data structure that has a message type may be deserialized from a context-free buffer (e.g. a file or network socket).
Required Associated Constants§
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.