Trait puffin::protocol::ProtocolMessage
source · 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)
Object Safety§
This trait is not object safe.