Trait ockam_core::Message[][src]

pub trait Message: Sized + Send + 'static {
    fn encode(&self) -> Result<Encoded>;
fn decode(e: &Encoded) -> Result<Self>; }
Expand description

A user defined message that can be serialised and deserialised

Required methods

Encode the type representation into an Encoded type.

Decode an Encoded type into the Message’s type.

Implementors