pub trait DecodeMessage<'m> {
    const WIRE_TYPE: WireType;

    fn decode_default() -> Self;
    fn merge(
        &mut self,
        kind: FieldKind<'m>,
        is_field: bool
    ) -> Result<(), DecodeError>; fn parse_from_bytes(b: &'m [u8]) -> Result<Self, DecodeError>
    where
        Self: Sized
, { ... } }

Required Associated Constants§

This field is just a hint, merge might accept another type

mostly this is used for detecting if we can pack a message

Required Methods§

kind does not need to be the same as Self::WIRE_TYPE

is_field is true if this message is a field of a struct or enum

Provided Methods§

Implementations on Foreign Types§

Implementors§