pub trait ProtocolMessage<PT: ProtocolTypes, O: OpaqueProtocolMessage<PT>>:
Clone
+ Debug
+ EvaluatedTerm<PT> {
// Required methods
fn create_opaque(&self) -> O;
fn debug(&self, info: &str);
}Expand description
A structured message. This type defines how all possible messages of a protocol.
Usually this is implemented using an enum.
Required Methods§
fn create_opaque(&self) -> O
fn debug(&self, info: &str)
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.