Message

Trait Message 

Source
pub trait Message<M> {
    // Required methods
    fn parse<R: ReadBytesExt>(reader: &mut R, header: &MrtHeader) -> Result<M>;
    fn can_parse(typ: MrtType) -> bool;
}

Required Methods§

Source

fn parse<R: ReadBytesExt>(reader: &mut R, header: &MrtHeader) -> Result<M>

Source

fn can_parse(typ: MrtType) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§