pub trait Type: Debug + Writeable {
// Required method
fn type_id(&self) -> u16;
}Expand description
Defines a type identifier for sending messages over the wire.
Messages implementing this trait specify a type and must be Writeable.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".