pub trait MessageDispatch {
// Required method
fn dispatch(
&self,
header: &MessageHeader,
buffer: &[u8],
) -> Result<(), DecodeError>;
}Expand description
Trait for message dispatching based on template ID.
This trait allows routing messages to appropriate handlers based on the template ID in the message header.