pub trait PbToBytes<B> where
B: Message, {
fn to_bytes(&self) -> Bytes;
fn from_bytes(buf: &[u8]) -> Result<B, DecodeError>;
}pub trait PbToBytes<B> where
B: Message, {
fn to_bytes(&self) -> Bytes;
fn from_bytes(buf: &[u8]) -> Result<B, DecodeError>;
}