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§
fn parse<R: ReadBytesExt>(reader: &mut R, header: &MrtHeader) -> Result<M>
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.