pub trait DecodeMessage<'m> {
const WIRE_TYPE: WireType;
// Required methods
fn decode_default() -> Self;
fn merge(
&mut self,
kind: FieldKind<'m>,
is_field: bool,
) -> Result<(), DecodeError>;
// Provided method
fn parse_from_bytes(b: &'m [u8]) -> Result<Self, DecodeError>
where Self: Sized { ... }
}
Required Associated Constants§
Required Methods§
fn decode_default() -> Self
Provided Methods§
fn parse_from_bytes(b: &'m [u8]) -> Result<Self, DecodeError>where
Self: Sized,
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.