Trait hedwig::DecodableMessage
source · pub trait DecodableMessage {
type Error;
type Decoder;
// Required method
fn decode(
msg: ValidatedMessage<Bytes>,
decoder: &Self::Decoder
) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
Messages which can be decoded from a ValidatedMessage
stream.