Trait pbcodec::traits::Message [] [src]

pub trait Message: Sized + Default {
    type Base: Message;
    fn from_base(base: Self::Base) -> Result<Self>;
fn into_base(self) -> Self::Base; fn encode_message<W: Write>(self, writer: W) -> EncodeMessage<W, Self>
    where
        Self::Base: Encode<W>
, { ... }
fn decode_message<R: Read>(reader: R) -> DecodeMessage<R, Self>
    where
        Self::Base: Decode<R>
, { ... } }

Associated Types

Required Methods

Provided Methods

Implementors