pub trait Message {
// Required methods
fn new_from_bytes(message_bytes: BytesMut) -> Result<Self, Error>
where Self: Sized;
fn get_bytes(&self) -> &BytesMut;
}
pub trait Message {
// Required methods
fn new_from_bytes(message_bytes: BytesMut) -> Result<Self, Error>
where Self: Sized;
fn get_bytes(&self) -> &BytesMut;
}