Trait aversion::group::GroupDeserialize[][src]

pub trait GroupDeserialize: Sized {
    fn read_message<Src>(src: &mut Src) -> Result<Self, Src::Error>
    where
        Src: DataSource
; }
Expand description

A derived trait that can deserialize any message from a group.

Required methods

Read the next message from the DataSource.

This will read the message header, and if the message id and message version are known, also read the message. The message will be upgraded to the latest version, and then returned as an enum variant (in the Self enum).

Implementors