pub trait MessageBox: Send + 'static {
// Required methods
fn decode(uuid: Bytes, data: &[u8]) -> Result<Self, Error>
where Self: Sized;
fn encode(&self) -> Result<Vec<u8>, Error>;
fn uuid(&self) -> Bytes;
}pub trait MessageBox: Send + 'static {
// Required methods
fn decode(uuid: Bytes, data: &[u8]) -> Result<Self, Error>
where Self: Sized;
fn encode(&self) -> Result<Vec<u8>, Error>;
fn uuid(&self) -> Bytes;
}