Trait hedwig::DecodableMessage[][src]

pub trait DecodableMessage {
    type Error;
    type Decoder;
    fn decode(
        msg: ValidatedMessage,
        decoder: &Self::Decoder
    ) -> Result<Self, Self::Error>
    where
        Self: Sized
; }
Expand description

Messages which can be decoded from a ValidatedMessage stream.

Associated Types

The error returned when a message fails to decode

The decoder used to decode a validated message

Required methods

Decode the given message, using the given decoder, into its structured type

Implementors